TypeConverterAttribute Class | Apache log4net™ SDK Documentation

Attribute used to associate a type converter
Inheritance Hierarchy

System
Object
System
Attribute
log4net.Util.TypeConverters
TypeConverterAttribute

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 TypeConverterAttribute : Attribute

    Public NotInheritable Class TypeConverterAttribute
    	Inherits Attribute

    public ref class TypeConverterAttribute sealed : public Attribute

    [<SealedAttribute>]
    type TypeConverterAttribute =
        class
            inherit Attribute
        end

The TypeConverterAttribute type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| TypeConverterAttribute | Default constructor
| TypeConverterAttribute(String) | Create a new type converter attribute for the specified type name
| TypeConverterAttribute(Type) | Create a new type converter attribute for the specified type

Top
Properties

| Name | Description
--- | --- | ---
| ConverterTypeName | The string type name of the type converter
| TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.)

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.)
| GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.)
| Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Class and Interface level attribute that specifies a type converter to use with the associated type.

To associate a type converter with a target type apply a TypeConverterAttribute to the target type. Specify the type of the type converter on the attribute.

See Also

#### Reference

log4net.Util.TypeConverters Namespace