1 write to EnumType
System.ComponentModel.DataAnnotations (1)
DataAnnotations\EnumDataTypeAttribute.cs (1)
14
this.
EnumType
= enumType;
10 references to EnumType
System.ComponentModel.DataAnnotations (9)
DataAnnotations\EnumDataTypeAttribute.cs (9)
23
if (this.
EnumType
== null) {
26
if (!this.
EnumType
.IsEnum) {
27
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, DataAnnotationsResources.EnumDataTypeAttribute_TypeNeedsToBeAnEnum, this.
EnumType
.FullName));
39
if (valueType.IsEnum && this.
EnumType
!= valueType) {
66
convertedValue = Enum.Parse(this.
EnumType
, stringValue, false);
68
convertedValue = Enum.ToObject(this.
EnumType
, value);
76
if (IsEnumTypeInFlagsMode(this.
EnumType
)) {
81
string underlying = GetUnderlyingTypeValueString(this.
EnumType
, convertedValue);
85
return Enum.IsDefined(this.
EnumType
, convertedValue);
System.Web.DynamicData (1)
DynamicData\DynamicDataExtensions.cs (1)
389
return column.Attributes.GetAttributePropertyValue<EnumDataTypeAttribute, Type>(a => a.
EnumType
, null) ??