Generics

Generic default or null

extension method to compare generics for default public static bool IsDefaultOrNull(this T value) { return EqualityComparer.Default.Equals(value, default(T)); }