Search Results for

    Show / Hide Table of Contents

    Class LocalizableString

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

    Inheritance
    System.Object
    LocalizableString
    LocalizableResourceString
    Implements
    IEquatable<LocalizableString>
    Namespace: Loretta.CodeAnalysis
    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
    Type Name Description
    LocalizableString other
    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

    ToString(Nullable<IFormatProvider>)

    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)

    Converts a LocalizableString to a System.String with the default UI culture.

    Declaration
    public static explicit operator string (LocalizableString localizableResource)
    Parameters
    Type Name Description
    LocalizableString localizableResource
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    Implicit(String to LocalizableString)

    Converts a System.String to a LocalizableString.

    Declaration
    public static implicit operator LocalizableString(string fixedResource)
    Parameters
    Type Name Description
    System.String fixedResource
    Returns
    Type Description
    LocalizableString

    Implements

    IEquatable<>
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾