Aqueduct.SitecoreLib.DataAccess.ValueResolvers.NullableResolver.IsNullableGenericType C# (CSharp) Method

IsNullableGenericType() private static method

private static IsNullableGenericType ( Type type ) : bool
type System.Type
return bool
        private static bool IsNullableGenericType (Type type)
        {
            if (!type.IsGenericType)
                return false;
            
            Type genericTypeDefinition = type.GetGenericTypeDefinition();
            return genericTypeDefinition == typeof(Nullable<>);
        }
    }