Search Results for

    Show / Hide Table of Contents

    Class ResXResourceWriter

    ResX resource writer. See the text in "ResourceSchema" for more information.

    Inheritance
    System.Object
    ResXResourceWriter
    Namespace: System.Resources.NetStandard
    Assembly: PnP.Framework.dll
    Syntax
    public class ResXResourceWriter : IResourceWriter

    Constructors

    ResXResourceWriter(Stream)

    Creates a new ResXResourceWriter that will write to the specified stream.

    Declaration
    public ResXResourceWriter(Stream stream)
    Parameters
    Stream stream

    ResXResourceWriter(Stream, Func<Type, String>)

    Declaration
    public ResXResourceWriter(Stream stream, Func<Type, string> typeNameConverter)
    Parameters
    Stream stream

    Func<Type, System.String> typeNameConverter

    ResXResourceWriter(String)

    Creates a new ResXResourceWriter that will write to the specified file.

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

    ResXResourceWriter(String, Func<Type, String>)

    Declaration
    public ResXResourceWriter(string fileName, Func<Type, string> typeNameConverter)
    Parameters
    System.String fileName

    Func<Type, System.String> typeNameConverter

    ResXResourceWriter(TextWriter)

    Creates a new ResXResourceWriter that will write to the specified TextWriter.

    Declaration
    public ResXResourceWriter(TextWriter textWriter)
    Parameters
    TextWriter textWriter

    ResXResourceWriter(TextWriter, Func<Type, String>)

    Declaration
    public ResXResourceWriter(TextWriter textWriter, Func<Type, string> typeNameConverter)
    Parameters
    TextWriter textWriter

    Func<Type, System.String> typeNameConverter

    Fields

    BinSerializedObjectMimeType

    Declaration
    public static readonly string BinSerializedObjectMimeType
    Field Value
    System.String

    ByteArraySerializedObjectMimeType

    Declaration
    public static readonly string ByteArraySerializedObjectMimeType
    Field Value
    System.String

    DefaultSerializedObjectMimeType

    Declaration
    public static readonly string DefaultSerializedObjectMimeType
    Field Value
    System.String

    ResMimeType

    Declaration
    public static readonly string ResMimeType
    Field Value
    System.String

    ResourceSchema

    Declaration
    public static readonly string ResourceSchema
    Field Value
    System.String

    SoapSerializedObjectMimeType

    Declaration
    public static readonly string SoapSerializedObjectMimeType
    Field Value
    System.String

    Version

    Declaration
    public static readonly string Version
    Field Value
    System.String

    Properties

    BasePath

    Base Path for ResXFileRefs.

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

    Methods

    AddAlias(String, AssemblyName)

    Adds aliases to the resource file...

    Declaration
    public virtual void AddAlias(string aliasName, AssemblyName assemblyName)
    Parameters
    System.String aliasName

    AssemblyName assemblyName

    AddMetadata(String, Byte[])

    Adds the given value to the collection of metadata. These name/value pairs will be emitted to the <metadata> elements in the .resx file.

    Declaration
    public void AddMetadata(string name, byte[] value)
    Parameters
    System.String name

    System.Byte[] value

    AddMetadata(String, Object)

    Adds the given value to the collection of metadata. These name/value pairs will be emitted to the <metadata> elements in the .resx file.

    Declaration
    public void AddMetadata(string name, object value)
    Parameters
    System.String name

    System.Object value

    AddMetadata(String, String)

    Adds the given value to the collection of metadata. These name/value pairs will be emitted to the <metadata> elements in the .resx file.

    Declaration
    public void AddMetadata(string name, string value)
    Parameters
    System.String name

    System.String value

    AddResource(ResXDataNode)

    Adds a string resource to the resources.

    Declaration
    public void AddResource(ResXDataNode node)
    Parameters
    ResXDataNode node

    AddResource(String, Byte[])

    Adds a blob resource to the resources.

    Declaration
    public void AddResource(string name, byte[] value)
    Parameters
    System.String name

    System.Byte[] value

    AddResource(String, Object)

    Adds a resource to the resources. If the resource is a string, it will be saved that way, otherwise it will be serialized and stored as in binary.

    Declaration
    public void AddResource(string name, object value)
    Parameters
    System.String name

    System.Object value

    AddResource(String, String)

    Adds a string resource to the resources.

    Declaration
    public void AddResource(string name, string value)
    Parameters
    System.String name

    System.String value

    Close()

    Closes any files or streams locked by the writer.

    Declaration
    public void Close()

    Dispose()

    Declaration
    public virtual void Dispose()

    Dispose(Boolean)

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

    Finalize()

    Declaration
    protected void Finalize()

    Generate()

    Writes the resources out to the file or stream.

    Declaration
    public void Generate()

    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