IConvertTo ConvertTo Method | Apache log4net™ SDK Documentation

Converts the given value object to the specified type, using the arguments

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

C#
VB
C++
F#
Copy

    Object ConvertTo(
    	Object source,
    	Type targetType
    )

    Function ConvertTo (
    	source As Object,
    	targetType As Type
    ) As Object

    Object^ ConvertTo(
    	Object^ source,
    	Type^ targetType
    )

    abstract ConvertTo :
            source : Object *
            targetType : Type -> Object

#### Parameters

source
  Type: System
  Object
  the object to convert
targetType
  Type: System
  Type
  The Type to convert the value parameter to

#### Return Value

Type: Object
the converted object
Remarks

Converts the source (which must be of the type supported by this converter) to the targetType specified..

See Also

#### Reference

IConvertTo Interface
log4net.Util.TypeConverters Namespace