IsNotNull

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

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

Description

This method returns true if the value if not null otherwise it returns false.

Details

Double click on the code to select all.

 

;