Writes all the resources added by the IResourceWriter.AddResource(string, string) method to the output file or stream.
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.