log4net SDK Reference

OptionConverter.ConvertTypeTo Method 

Converts an object to the target type.

[Visual Basic]
Public Shared Function ConvertTypeTo( _
   ByVal sourceInstance As Object, _
   ByVal targetType As Type _
) As Object
[C#]
public static object ConvertTypeTo(
   object sourceInstance,
   Type targetType
);

Parameters

sourceInstance
The object to convert to the target type.
targetType
The type to convert to.

Return Value

The converted object.

Remarks

Converts an object to the target type.

See Also

OptionConverter Class | log4net.Util Namespace