How can i avoid Use dispose pattern warning in my case?

前端 未结 0 1041
栀梦
栀梦 2021-02-19 07:48
foo(Bitmap A) 
{ 
   Bitmap B = Scaling(A);
   //Do something with B
}
Bitmap scaling(Bitmap A)
{
   if (condition) return A;
   else new Bitmap();
}

In

相关标签:
回答
  • 消灭零回复
提交回复
热议问题