ResXResourceWriter(String, FuncType, String) Constructor

Initializes a new instance of the ResXResourceWriter class that writes the resources to a specified file.

Definition

Namespace: KGySoft.Resources
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
C#
public ResXResourceWriter(
	string fileName,
	Func<Type, string?>? typeNameConverter = null
)

Parameters

fileName  String
The file to send output to.
typeNameConverter  FuncType, String  (Optional)
A delegate that can be used to specify type names explicitly (eg. to target earlier versions of assemblies or the .NET Framework). This parameter is optional.
Default value: .

Remarks

If typeNameConverter is specified it can be used to dump custom type names for any type. If it returns for a Type, then the default name will be used. To deserialize a .resx content with custom type names the ResXResourceReader constructors should be called with a non- ITypeResolutionService instance.

Exceptions

See Also