OptionConverterConvertStringTo Method Apache log4net™ SDK Documentation
Converts a string to an object.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public static Object ConvertStringTo(
	Type target,
	string txt
)

Parameters

target
Type: SystemType
The target type to convert to.
txt
Type: SystemString
The string to convert to an object.

Return Value

Type: Object
The 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

Reference