public static TEnum GetEnumOrDefault<TEnum>( this int value, TEnum defaultValue = null ) where TEnum : struct, new()
In This Article