src/Common/Utils/TypeHelper.cs
/// <summary>
/// Return the type itself, or for a nullable type, its unboxed type
/// </summary>
/// <param name="t"></param>
/// <returns></returns>
Return the type itself, or for a nullable type, its unboxed type
Return the type itself or for a nullable type its unboxed type
public static Type GetUnderlyingTypeIfNullable(Type t)
        {
            var isNullable = IsSystemNullableType(t);
            return isNullable ? Nullable.GetUnderlyingType(t) : t;
        }
public static Type GetUnderlyingTypeIfNullable ( Type t ) { var isNullable = IsSystemNullableType ( t ) ; return isNullable ? Nullable . GetUnderlyingType ( t ) : t ; }
Return the type itself, or for a nullable type, its unboxed type
Return the type itself or for a nullable type its unboxed type
None
t
Type
None