IsNullOrEmpty

public static bool IsNullOrEmpty(this String source){
   
   return String.IsNullOrEmpty(source);

}
Example:
var myReallyNiceString = GetThisStringFromACoolMethod();

if(myReallyNiceString.IsNullOrEmpty()){
   DoSomeThingFancyStuff();
}

Description

This extension increase the readability of your code.

Details

Double click on the code to select all.

 

;