IsNull

public static bool IsNull<T>(this T input)
{
   var output = false;
   if(null == input)
   {
      output = true;
   }
   return output;
}
Example:
StringBuilder stringBuilder = null;

if(stringBuilder.IsNull())
{
   //yeah, it's null
}

Description

This method returns true if the value is null otherwise it returns false

Details

Double click on the code to select all.

 

;