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

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public static Object ConvertStringTo(
	Type target,
	string txt
)

Return Value

Type: OnlineObject
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