31 if (
text !=
null &&
text.Length == 0)
40 if (!
type.IsValueType &&
type != typeof(
string))
44 if (
type == typeof(
bool) ||
type == typeof(
float) ||
type == typeof(
double) ||
type == typeof(decimal) ||
type == typeof(
char))
67 string value2 =
obj.ToString();
68 return !underlyingTypeValueString.Equals(value2);
EnumDataTypeAttribute(Type enumType)
override bool IsValid(object? value)
static string GetUnderlyingTypeValueString(Type enumType, object enumValue)
static bool IsEnumTypeInFlagsMode(Type enumType)
static ? object ChangeType(object? value, TypeCode typeCode)
static Type GetUnderlyingType(Type enumType)
static bool IsDefined(Type enumType, object value)
static object Parse(Type enumType, string value)
static object ToObject(Type enumType, object value)
static CultureInfo InvariantCulture
bool IsDefined(Type attributeType, bool inherit)
static string Format(string resourceFormat, object p1)
static string EnumDataTypeAttribute_TypeNeedsToBeAnEnum
static string EnumDataTypeAttribute_TypeCannotBeNull
static ? Type GetType(string typeName, bool throwOnError, bool ignoreCase)