Skip to main content
.NET 6.0+

EnumDescriptor Members

Supplies metadata information on an enumeration used in an XAF application.

Constructors

Name Description
EnumDescriptor(ICaptionHelper, Type) Initializes a new instance of the EnumDescriptor class with specified settings.
EnumDescriptor(Type, Dictionary<String, String>) Creates and initializes a new instance of the EnumDescriptor class.
EnumDescriptor(Type) Creates and initializes a new instance of the EnumDescriptor class.

Properties

Name Description
Captions Specifies the display captions associated with the values of the enumeration represented by the EnumDescriptor.
EnumType Specifies the underlying type of the enumeration represented by the EnumDescriptor.
IsNullable Indicates whether the enumeration represented by the EnumDescriptor is nullable.
Values Specifies the values of the enumeration represented by the EnumDescriptor.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GenerateDefaultCaptions(IModelLocalizationGroup, Type, CompoundNameConvertStyle) static Generates LocalizationItem nodes corresponding to the values of an enumeration.
GenerateDefaultCaptions(IModelLocalizationGroup, Type) static Generates LocalizationItem nodes corresponding to the values of an enumeration.
GetCaption(Int32) Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.
GetCaption(Object) Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.
GetCaption(String) Returns the display caption associated with a specified value of the enumeration represented by the EnumDescriptor.
GetEnumType(Type) static Returns the underlying type of a specified enumeration.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetImageInfo(Object) Supplies metadata on the image associated with a particular value of the enumeration represented by the EnumDescriptor.
GetNullableEnumType(Type) static
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ParseCaption(String) Returns the enumeration value corresponding to a particular display caption.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also