Class LocalizableDisplayNameAttribute
- Namespace
- Cryville.EEW.ComponentModel
- Assembly
- Cryville.EEW.dll
Specifies a localizable display name.
[AttributeUsage(AttributeTargets.All)]
public sealed class LocalizableDisplayNameAttribute : DisplayNameAttribute, ILocalizableMetadataAttribute, ILocalizable<string>
- Inheritance
-
LocalizableDisplayNameAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
LocalizableDisplayNameAttribute(string, string)
Creates an instance of the LocalizableDisplayNameAttribute class.
public LocalizableDisplayNameAttribute(string displayName, string type = "")
Parameters
displayNamestring- The name of the localizable string.
typestring- The name of the localizable resource.
Properties
DisplayName
Gets the display name for a property, event, or public void method that takes no arguments stored in this attribute.
public override string DisplayName { get; }
Property Value
- string
- The display name.
Path
The string set names where the localizable string is.
public string[] Path { get; set; }
Property Value
- string[]
Type
The name of the localized resource.
public string Type { get; }
Property Value
Methods
GetLocalizedValue(ref CultureInfo?)
Gets the value of a culture.
public string GetLocalizedValue(ref CultureInfo? culture)
Parameters
cultureCultureInfo- The preferred culture of the value. When the method returns, set to the actual culture of the value.
Returns
- string
- The localized value.