Table of Contents

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

TKey

The 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

string

EnumeratorType

Gets the type of the enumerator.

[JsonIgnore]
Type? EnumeratorType { get; }

Property Value

Type

GroupName

Gets the group name for categorizing related enumeration values.

string? GroupName { get; }

Property Value

string

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

string

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; }

Property Value

string