PreserializedResourceWriter Constructors

Definition

Overloads

PreserializedResourceWriter(Stream)

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the provided stream.

PreserializedResourceWriter(String)

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the specified file.

PreserializedResourceWriter(Stream)

Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the provided stream.

C#
public PreserializedResourceWriter(System.IO.Stream stream);

Parameters

stream
Stream

The output stream.

Exceptions

stream is not writable.

stream is null.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 5, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 6, 7, 8, 9, 10

PreserializedResourceWriter(String)

Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs
Source:
ResourceWriter.cs

Initializes a new instance of the PreserializedResourceWriter class that writes the resources to the specified file.

C#
public PreserializedResourceWriter(string fileName);

Parameters

fileName
String

The output file name.

Exceptions

The fileName is null.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 5, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 6, 7, 8, 9, 10