Szerkesztés

Megosztás a következőn keresztül:


PreserializedResourceWriter.Generate Method

Definition

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.

Applies to