Class LocalizableDescriptionAttribute
- Namespace
- Cryville.EEW.ComponentModel
- Assembly
- Cryville.EEW.dll
Specifies a localizable description.
[AttributeUsage(AttributeTargets.All)]
public sealed class LocalizableDescriptionAttribute : DescriptionAttribute, ILocalizableMetadataAttribute, ILocalizable<string>
- Inheritance
-
LocalizableDescriptionAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
LocalizableDescriptionAttribute(string, string)
Creates an instance of the LocalizableDescriptionAttribute class.
public LocalizableDescriptionAttribute(string description, string type = "")
Parameters
descriptionstring- The name of the localizable string.
typestring- The name of the localizable resource.
Properties
Description
Gets the description stored in this attribute.
public override string Description { get; }
Property Value
- string
- The description stored in this attribute.
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.