Table of Contents

Struct Localized<T>

Namespace
Cryville.EEW
Assembly
Cryville.EEW.dll
Represent an object holding an already localized value.
public record struct Localized<T> : ILocalizable<T>, IEquatable<Localized<T>>

Type Parameters

T
The type of the value.
Implements
Inherited Members
Extension Methods

Constructors

Localized(T, CultureInfo)

Represent an object holding an already localized value.
public Localized(T Value, CultureInfo Culture)

Parameters

Value T
The value.
Culture CultureInfo
The culture.

Properties

Culture

The culture.
public CultureInfo Culture { readonly get; set; }

Property Value

CultureInfo

Value

The value.
public T Value { readonly get; set; }

Property Value

T

Methods

GetLocalizedValue(ref CultureInfo?)

Gets the value of a culture.
public readonly T 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

T
The localized value.

ToString()

Returns the fully qualified type name of this instance.
public override readonly string? ToString()

Returns

string
The fully qualified type name.