ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods

IsNull

check value is null

Source

pubic static bool IsNull(this object source)
{
  return source == null;
}

Example

string foo = null;
if(foo.IsNull())
{
  ///
}

Author: unkown

Submitted on: 28 mrt. 2008

Language: C#

Type: System.Object

Views: 16388