1
Vote

Two new string extension methods

description

Hi,
 
I would like to propose two new extension methods to your library.
 
The bare and simple:
 
public bool IsNullOrEmpty(this string @string)
{
 return string.IsNullOrEmpty(@string);
}
 
And this alternative one from: http://stackoverflow.com/questions/786706/why-is-there-no-isnullorempty-overload-method-without-parameters
 
public static bool IsNothing( this string source )
{
if (source == null || source.Length == 0)
{
    return true;
}
else if (source.Trim().Length == 0)
{
    return true;
}
return false;
}

comments