On Feb 21, 6:33 pm, Larry <l...@nospamhere.com> wrote:
> Thanks in advance.
> what is the C# equivalent of the VB.net IsNothing(object) function?
> just trying to check to see if an object instance already exists.
> does someone have an example?
>
> *** Sent via Developersdexhttp://www.developersdex.com***
It's quite easy: you just compare to "null"
object someobject;
someobject = someMethod();
if (someobject == null)
{
// if it's null, then what?
}
Does that solve your problems?
--Freiddy
http://fei.yuanbw.googlepages.com/