System.Resources.IResourceWriter.Generate Method

Writes all the resources added by the IResourceWriter.AddResource(string, string) method to the output file or stream.

Syntax

public void Generate ()

Remarks

IResourceWriter.Generate does not close the output file or output stream. Instead, consider calling the IResourceWriter.Close method. IResourceWriter.Generate is useful when you want to create a resource file, but you don't want to close the output stream. IResourceWriter.Generate can be called only once. After you call IResourceWriter.Generate, all System.Resources.IResourceWriter methods other than IResourceWriter.Close will throw an exception.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0