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