[Mono-list] Easy way to check object assigned

Miguel de Icaza miguel@ximian.com
18 Nov 2001 00:30:37 -0500


> In my code I've been using:
> 
> if (object == null)
> 
> as  a way of checking whether or not an object is a valid reference.  I know 
> in VB it's [object is nothing] and in Delphi it's [Assigned(object)].  Is 
> there a similar syntax for C#?

You can use:

	if (object == null)
		

:-)

Miguel