OptionConverterConvertTypeTo Method Apache log4net™ SDK Documentation
Converts an object to the target type.

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

public static Object ConvertTypeTo(
	Object sourceInstance,
	Type targetType
)

Parameters

sourceInstance
Type: SystemObject
The object to convert to the target type.
targetType
Type: SystemType
The type to convert to.

Return Value

Type: Object
The converted object.
Remarks

Converts an object to the target type.

See Also

Reference