EnumLocalTextRegistration class
namespace: Serenity.Localization assembly: Serenity.Net.Core
Contains initialization methods for adding local text translations defined by DescriptionAttribute attributes in enumeration classes.
public static class EnumLocalTextRegistration
Public Members
| name | description |
|---|---|
| static AddEnumTexts(…) | Adds local text translations defined implicitly by DescriptionAttribute attributes in enumeration classes. Only enum values that have a DescriptionAttribute are added as local text. By default, enums are registered in the format "Enums..", where EnumerationTypeFullName is the full name of the enumeration type. This can be overridden by attaching an EnumKeyAttribute. |
See Also
- Source: EnumLocalTextRegistration.cs