ResXResourceWriter(String, FuncType, String) Constructor
Initializes a new instance of the
ResXResourceWriter class that writes the resources to a specified file.
Namespace: KGySoft.ResourcesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public ResXResourceWriter(
string fileName,
Func<Type, string?>? typeNameConverter = null
)
Public Sub New (
fileName As String,
Optional typeNameConverter As Func(Of Type, String) = Nothing
)
public:
ResXResourceWriter(
String^ fileName,
Func<Type^, String^>^ typeNameConverter = nullptr
)
new :
fileName : string *
?typeNameConverter : Func<Type, string>
(* Defaults:
let _typeNameConverter = defaultArg typeNameConverter null
*)
-> ResXResourceWriter
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: .
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.