Format:
Recent snippets matching tags of extension-method
/// <summary> /// Return empty enumerator when passed enumerator equals to null /// </summary> /// <param name="source">The source.</param> /// <returns></returns> public static IEnumerable<T> EmptyIfNull<T>(this IEnumerable<T> source) { return source ?? Enumerable.Empty<T>(); }
182 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
