Class LocalizableString
A string that may possibly be formatted differently depending on culture.
NOTE: Types implementing LocalizableString must be serializable.
Inheritance
System.Object
LocalizableString
Assembly: cs.temp.dll.dll
Syntax
public abstract class LocalizableString : IFormattable
Methods
AreEqual(Object)
Provides the implementation of Equals. Equals will provide a default value
if this method throws an exception.
Declaration
protected abstract bool AreEqual(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(LocalizableString)
Declaration
public bool Equals(LocalizableString other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public sealed override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
GetHash()
Provides the implementation of GetHashCode. GetHashCode will provide a default value
if this method throws an exception.
Declaration
protected abstract int GetHash()
Returns
Type |
Description |
System.Int32 |
|
GetHashCode()
Declaration
public sealed override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
GetText(Nullable<IFormatProvider>)
Formats the value of the current instance using the optionally specified format.
Provides the implementation of ToString. ToString will provide a default value
if this method throws an exception.
Declaration
protected abstract string GetText(IFormatProvider? formatProvider)
Parameters
Type |
Name |
Description |
System.Nullable<IFormatProvider> |
formatProvider |
|
Returns
Type |
Description |
System.String |
|
ToString()
Declaration
public sealed override string ToString()
Returns
Type |
Description |
System.String |
|
Formats the value of the current instance using the optionally specified format.
Declaration
public string ToString(IFormatProvider? formatProvider)
Parameters
Type |
Name |
Description |
System.Nullable<IFormatProvider> |
formatProvider |
|
Returns
Type |
Description |
System.String |
|
Events
OnException
Fired when an exception is raised by any of the public methods of LocalizableString.
If the exception handler itself throws an exception, that exception is ignored.
Declaration
public event EventHandler<Exception>? OnException
Event Type
Type |
Description |
System.Nullable<EventHandler<Exception>> |
|
Operators
Explicit(LocalizableString to String)
Declaration
public static explicit operator string (LocalizableString localizableResource)
Parameters
Returns
Type |
Description |
System.String |
|
Implicit(String to LocalizableString)
Declaration
public static implicit operator LocalizableString(string fixedResource)
Parameters
Type |
Name |
Description |
System.String |
fixedResource |
|
Returns
Implements
IEquatable<>