Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface System.​Resources.​IResourceWriter

Assembly: System.Resources.Writer

Implemented Interfaces

Provides the base functionality for writing resources to an output file or stream.

Methods

void
AddResource​(string name, byte[] value)
Adds an 8-bit unsigned integer array as a named resource to the list of resources to be written.
name Name of a resource.
value Value of a resource as an 8-bit unsigned integer array.
void
AddResource​(string name, object value)
Adds a named resource of type <see cref="T:System.Object" /> to the list of resources to be written.
name The name of the resource.
value The value of the resource.
void
AddResource​(string name, string value)
Adds a named resource of type <see cref="T:System.String" /> to the list of resources to be written.
name The name of the resource.
value The value of the resource.
void
Close​()
Closes the underlying resource file or stream, ensuring all the data has been written to the file.
void
Generate​()
Writes all the resources added by the <see cref="M:System.Resources.IResourceWriter.AddResource(System.String,System.String)" /> method to the output file or stream.