Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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(
���objectsourceInstance,
���TypetargetType
);

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