1 write to EnumType
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (1)
17
EnumType
= enumType;
9 references to EnumType
System.ComponentModel.Annotations (9)
System\ComponentModel\DataAnnotations\EnumDataTypeAttribute.cs (9)
24
if (
EnumType
== null)
28
if (!
EnumType
.IsEnum)
30
throw new InvalidOperationException(SR.Format(SR.EnumDataTypeAttribute_TypeNeedsToBeAnEnum,
EnumType
.FullName));
44
if (valueType.IsEnum &&
EnumType
!= valueType)
77
? Enum.Parse(
EnumType
, stringValue, false)
78
: Enum.ToObject(
EnumType
, value);
87
if (IsEnumTypeInFlagsMode(
EnumType
))
93
string underlying = GetUnderlyingTypeValueString(
EnumType
, convertedValue)!;
98
return Enum.IsDefined(
EnumType
, convertedValue);