Writes all resources added by the ResXResourceWriter.AddResource(string, Byte[]) method to the output file or stream.
The ResXResourceWriter.Generate method writes the resources to the output file or stream. If you want to write the resources as well as close the output file or stream, call the ResXResourceWriter.Close method.
The ResXResourceWriter.Generate method can be called only once. After calling the ResXResourceWriter.Generate method, all System.Resources.IResourceWriter methods other than ResXResourceWriter.Close will throw an exception.