ConverterRegistry AddConverter Method (Type, Type) | Apache log4net™ SDK Documentation

Adds a converter for a specific 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 void AddConverter(
    	Type destinationType,
    	Type converterType
    )

    Public Shared Sub AddConverter (
    	destinationType As Type,
    	converterType As Type
    )

    public:
    static void AddConverter(
    	Type^ destinationType,
    	Type^ converterType
    )

    static member AddConverter :
            destinationType : Type *
            converterType : Type -> unit

#### Parameters

destinationType
  Type: System
  Type
  The type being converted to.
converterType
  Type: System
  Type
  The type of the type converter to use to convert to the destination type.

Remarks

Adds a converter Type for a specific type.

See Also

#### Reference

ConverterRegistry Class
AddConverter Overload
log4net.Util.TypeConverters Namespace