zhaoyao
10/28/2002 8:37:00 PM
Hi All,
I'm trying to return an instance of an instance object through a parameter,
but am always getting an null...
object obj = null;
MyMethod( obj );
private bool MyMethod( obj )
{
obj = new object();
return true;
}
I used to have the ref attribute set for the parameter, but when running it
through a utility FxCop, it says consider a design where the method doesn't
require a reference parameter..
Anybody can shed me some light ?
thanks,
moses