how can i tell if a class is instantiated.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am new to C# (from C++). I do:
foo = new Client(this);

later on I want to check if I actually have done this "new". I use to
do:

if (foo == NULL) //not instantiated so new it...

what do i do in C#?
thanks
 
Back
Top