ConverterRegistry GetConvertTo Method | Apache log4net™ SDK Documentation

Gets the type converter to use to convert values to the destination type.

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

C#
VB
C++
F#
Copy

    public static IConvertTo GetConvertTo(
    	Type sourceType,
    	Type destinationType
    )

    Public Shared Function GetConvertTo (
    	sourceType As Type,
    	destinationType As Type
    ) As IConvertTo

    public:
    static IConvertTo^ GetConvertTo(
    	Type^ sourceType,
    	Type^ destinationType
    )

    static member GetConvertTo :
            sourceType : Type *
            destinationType : Type -> IConvertTo

#### Parameters

sourceType
  Type: System
  Type
  The type being converted from.
destinationType
  Type: System
  Type
  The type being converted to.

#### Return Value

Type: IConvertTo
The type converter instance to use for type conversions or null if no type converter is found.
Remarks

Gets the type converter to use to convert values to the destination type.

See Also

#### Reference

ConverterRegistry Class
log4net.Util.TypeConverters Namespace