ConverterRegistry Class | Apache log4net™ SDK Documentation

Register of type converters for specific types.
Inheritance Hierarchy

System
Object
log4net.Util.TypeConverters
ConverterRegistry

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

C#
VB
C++
F#
Copy

    public sealed class ConverterRegistry

    Public NotInheritable Class ConverterRegistry

    public ref class ConverterRegistry sealed

    [<SealedAttribute>]
    type ConverterRegistry =  class end

The ConverterRegistry type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| AddConverter(Type, Object) | Adds a converter for a specific type.
| AddConverter(Type, Type) | Adds a converter for a specific type.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetConvertFrom | Gets the type converter to use to convert values to the destination type.
| GetConvertTo | Gets the type converter to use to convert values to the destination type.
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Maintains a registry of type converters used to convert between types.

Use the [M:AddConverter(Type, object)] and [M:AddConverter(Type, Type)] methods to register new converters. The GetConvertTo(Type, Type) and GetConvertFrom(Type) methods lookup appropriate converters to use.

See Also

#### Reference

log4net.Util.TypeConverters Namespace
log4net.Util.TypeConverters
IConvertFrom
log4net.Util.TypeConverters
IConvertTo