All C# extension methods for type nullable-t
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.
Returns a the value of a Nullable type if it has a value or it will return a default value
Substitutes this: int? index = GetIndex(); if (index.HasValue && index.Value == 10) ...