ResXResourceSetSave(String, Boolean, Boolean, String) Method

Saves the ResXResourceSet to the specified file.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void Save(
	string fileName,
	bool compatibleFormat = false,
	bool forceEmbeddedResources = false,
	string? newBasePath = null
)

Parameters

fileName  String
The location of the file where you want to save the resources.
compatibleFormat  Boolean  (Optional)
If set to , the result .resx file can be read by the System.Resources.ResXResourceReader class and the Visual Studio Resource Editor. If set to , the result .resx is often shorter, and the values can be deserialized with better accuracy (see the remarks at ResXResourceWriter), but the result can be read only by ResXResourceReader. This parameter is optional.
Default value: .
forceEmbeddedResources  Boolean  (Optional)
If set to the resources using a file reference (ResXFileRef) will be replaced by embedded resources. This parameter is optional.
Default value:
newBasePath  String  (Optional)
A new base path for the file paths specified in the ResXFileRef objects. If , the original BasePath will be used. The file paths in the saved .resx file will be relative to the newBasePath. Applicable if forceEmbeddedResources is . This parameter is optional.
Default value: .

Implements

IExpandoResourceSetSave(String, Boolean, Boolean, String)

See Also