Table of Contents

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

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

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.