Specifies a localized text representation for an enum field or property, retrieving its display text from a resource file at runtime.
public LocalizedEnumTextAttribute(string resourceKey)
Use this attribute to replace raw enum field names with user-friendly, localized display text based on a resource key.
public enum Status { [LocalizedEnumText("PendingApproval")] Pending, [LocalizedEnumText("Approved")] Approved, [LocalizedEnumText("Rejected")] Rejected }
There was an error while loading. Please reload this page.