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: Loretta.CodeAnalysis.dll
Syntax
public abstract class LocalizableString : IFormattable
Methods
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
Equals(LocalizableString)
Declaration
public bool Equals(LocalizableString other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public sealed override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public sealed override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
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 |
|
|
Improve this Doc
View Source
ToString()
Declaration
public sealed override string ToString()
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
Explicit(LocalizableString to String)
Declaration
public static explicit operator string (LocalizableString localizableResource)
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Implicit(String to LocalizableString)
Declaration
public static implicit operator LocalizableString(string fixedResource)
Parameters
Type |
Name |
Description |
System.String |
fixedResource |
|
Returns
Implements
IEquatable<>