PreserializedResourceWriter.Generate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes all resources to the output stream.
public:
virtual void Generate();
public void Generate ();
abstract member Generate : unit -> unit
override this.Generate : unit -> unit
Public Sub Generate ()
Implements
Exceptions
The resource list is null
.
Remarks
If the resources added to the writer can be represented in the system default format understood by the ResourceReader, they will be written as such. If the resources require runtime deserialization other than that supported by the system default format (BinaryFormatter) then we will write them using the format understood by DeserializingResourceReader.
If an exception occurs during object serialization or during IO, the .resources file is closed and deleted, since it is most likely invalid.