Search Results for

    Show / Hide Table of Contents

    Class LocalizableResourceString

    A localizable resource string that may possibly be formatted differently depending on culture.

    Inheritance
    System.Object
    LocalizableString
    LocalizableResourceString
    Implements
    IEquatable<LocalizableString>
    IObjectWritable
    Inherited Members
    LocalizableString.OnException
    LocalizableString.ToString(Nullable<IFormatProvider>)
    LocalizableString.ToString()
    LocalizableString.GetHashCode()
    LocalizableString.Equals(Object)
    LocalizableString.Equals(LocalizableString)
    Namespace: Loretta.CodeAnalysis
    Assembly: Loretta.CodeAnalysis.dll
    Syntax
    public sealed class LocalizableResourceString : LocalizableString

    Constructors

    | Improve this Doc View Source

    LocalizableResourceString(String, ResourceManager, Type)

    Creates a localizable resource string with no formatting arguments.

    Declaration
    public LocalizableResourceString(string nameOfLocalizableResource, ResourceManager resourceManager, Type resourceSource)
    Parameters
    Type Name Description
    System.String nameOfLocalizableResource

    nameof the resource that needs to be localized.

    System.Resources.ResourceManager resourceManager

    System.Resources.ResourceManager for the calling assembly.

    Type resourceSource

    Type handling assembly's resource management. Typically, this is the static class generated for the resources file from which resources are accessed.

    | Improve this Doc View Source

    LocalizableResourceString(String, ResourceManager, Type, String[])

    Creates a localizable resource string that may possibly be formatted differently depending on culture.

    Declaration
    public LocalizableResourceString(string nameOfLocalizableResource, ResourceManager resourceManager, Type resourceSource, params string[] formatArguments)
    Parameters
    Type Name Description
    System.String nameOfLocalizableResource

    nameof the resource that needs to be localized.

    System.Resources.ResourceManager resourceManager

    System.Resources.ResourceManager for the calling assembly.

    Type resourceSource

    Type handling assembly's resource management. Typically, this is the static class generated for the resources file from which resources are accessed.

    System.String[] formatArguments

    Optional arguments for formatting the localizable resource string.

    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 override bool AreEqual(object other)
    Parameters
    Type Name Description
    System.Object other
    Returns
    Type Description
    System.Boolean
    Overrides
    LocalizableString.AreEqual(Object)
    | 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 override int GetHash()
    Returns
    Type Description
    System.Int32
    Overrides
    LocalizableString.GetHash()
    | Improve this Doc View Source

    GetText(Nullable<IFormatProvider>)

    Gets the text for the localizable string with the provided format provider.

    Declaration
    protected override string GetText(IFormatProvider? formatProvider)
    Parameters
    Type Name Description
    System.Nullable<IFormatProvider> formatProvider
    Returns
    Type Description
    System.String
    Overrides
    LocalizableString.GetText(Nullable<IFormatProvider>)

    Implements

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

    Copyright (c) LorettaDevs

    Generated by DocFX

    ☀
    ☾