All C# extension methods for type nullable-t
-
ToNullableString()
Calling Value.ToString on a System.Nullable<T> type where the value is null will result in an "Nullable object must have a value." exception being thrown. This extension method can be used in place of .ToString to prevent this exception from occurring.
-
DefaultValue
Returns a the value of a Nullable type if it has a value or it will return a default value
-
HasValueAndEquals
Substitutes this: int? index = GetIndex(); if (index.HasValue && index.Value == 10) ...