Struct Localized<T>
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
-
ILocalizable<T>IEquatable<Localized<T>>
- Inherited Members
- Extension Methods
Constructors
Localized(T, CultureInfo)
Represent an object holding an already localized value.
public Localized(T Value, CultureInfo Culture)
Parameters
ValueT- The value.
CultureCultureInfo- The culture.
Properties
Culture
The culture.
public CultureInfo Culture { readonly get; set; }
Property Value
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
cultureCultureInfo- 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.