Table of Contents

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

description string
The name of the localizable string.
type string
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

string

Methods

GetLocalizedValue(ref CultureInfo?)

Gets the value of a culture.
public string GetLocalizedValue(ref CultureInfo? culture)

Parameters

culture CultureInfo
The preferred culture of the value. When the method returns, set to the actual culture of the value.

Returns

string
The localized value.