public static bool IsLiteralType(this Type type)
        {
            if (type.IsNullableType())
            {
                type = Nullable.GetUnderlyingType(type);
            }

            return(LiteralTypes.Contains(type));
        }
        public static bool IsLiteralType(this Type type)
        {
            if (type.IsNullableType())
            {
                type = Nullable.GetUnderlyingType(type);
            }

            return(LiteralTypes.Contains(type) || typeof(Enum).IsAssignableFrom(type));
        }