Läs på engelska

Dela via


LocalizableString Class

Definition

A string that may possibly be formatted differently depending on culture. NOTE: Types implementing LocalizableString must be serializable.

C#
public abstract class LocalizableString : IEquatable<Microsoft.CodeAnalysis.LocalizableString>, IFormattable
Inheritance
LocalizableString
Derived
Implements

Constructors

Methods

AreEqual(Object)

Provides the implementation of Equals. Equals will provide a default value if this method throws an exception.

Equals(LocalizableString)
Equals(Object)
GetHash()

Provides the implementation of GetHashCode. GetHashCode will provide a default value if this method throws an exception.

GetHashCode()
GetText(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.

ToString()
ToString(IFormatProvider)

Formats the value of the current instance using the optionally specified format.

Operators

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.

Explicit Interface Implementations

Applies to

Produkt Versioner
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0