Aqueduct.SitecoreLib.DataAccess.ValueResolvers.NullableResolver.IsNullableGenericType C# (CSharp) Метод

IsNullableGenericType() приватный статический Метод

private static IsNullableGenericType ( Type type ) : bool
type System.Type
Результат bool
        private static bool IsNullableGenericType (Type type)
        {
            if (!type.IsGenericType)
                return false;
            
            Type genericTypeDefinition = type.GetGenericTypeDefinition();
            return genericTypeDefinition == typeof(Nullable<>);
        }
    }