Converts an object to the target type.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
public static Object ConvertTypeTo(
Object sourceInstance,
Type targetType
)
public static Object ConvertTypeTo(
Object sourceInstance,
Type targetType
)
Public Shared Function ConvertTypeTo (
sourceInstance As Object,
targetType As Type
) As Object
Public Shared Function ConvertTypeTo (
sourceInstance As Object,
targetType As Type
) As Object
public:
static Object^ ConvertTypeTo(
Object^ sourceInstance,
Type^ targetType
)
public:
static Object^ ConvertTypeTo(
Object^ sourceInstance,
Type^ targetType
)
Parameters
- sourceInstance
- Type: System Object
The object to convert to the target type.
- targetType
- Type: System Type
The type to convert to.
Return Value
Type:
ObjectThe converted object.
Converts an object to the target type.