Search Results for

    Show / Hide Table of Contents

    Class ResXResourceReader

    ResX resource reader.

    Inheritance
    System.Object
    ResXResourceReader
    Namespace: System.Resources.NetStandard
    Assembly: PnP.Framework.dll
    Syntax
    public class ResXResourceReader : IResourceReader

    Constructors

    ResXResourceReader(Stream)

    Declaration
    public ResXResourceReader(Stream stream)
    Parameters
    Stream stream

    ResXResourceReader(Stream, AssemblyName[])

    Declaration
    public ResXResourceReader(Stream stream, AssemblyName[] assemblyNames)
    Parameters
    Stream stream

    AssemblyName[] assemblyNames

    ResXResourceReader(Stream, ITypeResolutionService)

    Declaration
    public ResXResourceReader(Stream stream, ITypeResolutionService typeResolver)
    Parameters
    Stream stream

    ITypeResolutionService typeResolver

    ResXResourceReader(String)

    Declaration
    public ResXResourceReader(string fileName)
    Parameters
    System.String fileName

    ResXResourceReader(String, AssemblyName[])

    Declaration
    public ResXResourceReader(string fileName, AssemblyName[] assemblyNames)
    Parameters
    System.String fileName

    AssemblyName[] assemblyNames

    ResXResourceReader(String, ITypeResolutionService)

    Declaration
    public ResXResourceReader(string fileName, ITypeResolutionService typeResolver)
    Parameters
    System.String fileName

    ITypeResolutionService typeResolver

    ResXResourceReader(TextReader)

    Declaration
    public ResXResourceReader(TextReader reader)
    Parameters
    TextReader reader

    ResXResourceReader(TextReader, AssemblyName[])

    Declaration
    public ResXResourceReader(TextReader reader, AssemblyName[] assemblyNames)
    Parameters
    TextReader reader

    AssemblyName[] assemblyNames

    ResXResourceReader(TextReader, ITypeResolutionService)

    Declaration
    public ResXResourceReader(TextReader reader, ITypeResolutionService typeResolver)
    Parameters
    TextReader reader

    ITypeResolutionService typeResolver

    Properties

    BasePath

    BasePath for relatives filepaths with ResXFileRefs.

    Declaration
    public string BasePath { get; set; }
    Property Value
    System.String

    UseResXDataNodes

    ResXFileRef's TypeConverter automatically unwraps it, creates the referenced object and returns it. This property gives the user control over whether this unwrapping should happen, or a ResXFileRef object should be returned. Default is true for backward compat and common case scenario.

    Declaration
    public bool UseResXDataNodes { get; set; }
    Property Value
    System.Boolean

    Methods

    Close()

    Closes and files or streams being used by the reader.

    Declaration
    public void Close()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    FromFileContents(String)

    Creates a reader with the specified file contents.

    Declaration
    public static ResXResourceReader FromFileContents(string fileContents)
    Parameters
    System.String fileContents

    Returns
    ResXResourceReader

    FromFileContents(String, AssemblyName[])

    Creates a reader with the specified file contents.

    Declaration
    public static ResXResourceReader FromFileContents(string fileContents, AssemblyName[] assemblyNames)
    Parameters
    System.String fileContents

    AssemblyName[] assemblyNames

    Returns
    ResXResourceReader

    FromFileContents(String, ITypeResolutionService)

    Creates a reader with the specified file contents.

    Declaration
    public static ResXResourceReader FromFileContents(string fileContents, ITypeResolutionService typeResolver)
    Parameters
    System.String fileContents

    ITypeResolutionService typeResolver

    Returns
    ResXResourceReader

    GetEnumerator()

    Declaration
    public IDictionaryEnumerator GetEnumerator()
    Returns
    IDictionaryEnumerator

    GetMetadataEnumerator()

    Returns a dictionary enumerator that can be used to enumerate the <metadata> elements in the .resx file.

    Declaration
    public IDictionaryEnumerator GetMetadataEnumerator()
    Returns
    IDictionaryEnumerator

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer