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