Converts a string to an object.
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- target
- Type: SystemType
The target type to convert to. - txt
- Type: SystemString
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