ConverterRegistry AddConverter Method (Type, Object) | 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,
    	Object converter
    )

    Public Shared Sub AddConverter (
    	destinationType As Type,
    	converter As Object
    )

    public:
    static void AddConverter(
    	Type^ destinationType,
    	Object^ converter
    )

    static member AddConverter :
            destinationType : Type *
            converter : Object -> unit

#### Parameters

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

Remarks

Adds a converter instance for a specific type.

See Also

#### Reference

ConverterRegistry Class
AddConverter Overload
log4net.Util.TypeConverters Namespace