Extension Methods to Die For

This will be a running blog entry that I’ll update periodically when I have new ideas.

Enum.ToUserString();

string.IsNullOrEmpty:

public static bool IsNullOrEmpty(this string str)
{
return string.IsNullOrEmpty(str);
}

2 comments:

Unknown said...

I like this extension method for neat threadsafe updates to the UI.

[Stefan] said...

Check out mine at my development blog. Includes IsNullOrEmptyTrimmed, IsEither´1, IsNeither´1, GetAtMost, SafeConvert,
ToArray´1