BaseJump.Core.Metadata.ModelMetadataProvider.UnwrapNullable C# (CSharp) Method

UnwrapNullable() private method

private UnwrapNullable ( TypeInfo info ) : TypeInfo
info System.Reflection.TypeInfo
return System.Reflection.TypeInfo
        private TypeInfo UnwrapNullable(TypeInfo info)
        {
            if (info.IsGenericType && info.GetGenericTypeDefinition() == typeof(Nullable<>))
            {
                return info.GenericTypeArguments[0].GetTypeInfo();
            }
            return info;
        }