Converts a string to an object.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- target
- Type: System Type
The target type to convert to.
- txt
- Type: System String
The string to convert to an object.
Return Value
Type: ObjectThe object converted from a string or null when the conversion failed.
Remarks
Converts a string to an object. Uses the converter registry to try to convert the string value into the specified target type.
See Also