Interface IEnumDescriptor<TKey>
- Namespace
- NuvTools.Common.Enums
- Assembly
- NuvTools.Common.dll
Represents a descriptor for enumeration values with rich metadata.
public interface IEnumDescriptor<TKey> where TKey : IEquatable<TKey>
Type Parameters
TKeyThe underlying type of the enumeration identifier (e.g., int, byte, long).
- Extension Methods
Properties
Description
Gets the description of the enumeration value.
string? Description { get; }
Property Value
EnumeratorType
Gets the type of the enumerator.
[JsonIgnore]
Type? EnumeratorType { get; }
Property Value
GroupName
Gets the group name for categorizing related enumeration values.
string? GroupName { get; }
Property Value
Id
Gets the unique identifier of the enumeration value.
TKey Id { get; }
Property Value
- TKey
Name
Gets the display name of the enumeration value.
string? Name { get; }
Property Value
Order
Gets the display order for sorting enumeration values.
int? Order { get; }
Property Value
- int?
ShortName
Gets the short name or abbreviation of the enumeration value.
string? ShortName { get; }