RendererMap Class | Apache log4net™ SDK Documentation

Map class objects to an IObjectRenderer.
Inheritance Hierarchy

System
Object
log4net.ObjectRenderer
RendererMap

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

C#
VB
C++
F#
Copy

    public class RendererMap

    Public Class RendererMap

    public ref class RendererMap

    type RendererMap =  class end

The RendererMap type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| RendererMap | Default Constructor

Top
Properties

| Name | Description
--- | --- | ---
| DefaultRenderer | Get the default renderer instance

Top
Methods

| Name | Description
--- | --- | ---
| Clear | Clear the map of renderers
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| FindAndRender(Object) | Render obj using the appropriate renderer.
| FindAndRender(Object, TextWriter) | Render obj using the appropriate renderer.
| Get(Object) | Gets the renderer for the specified object type
| Get(Type) | Gets the renderer for the specified 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.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| Put | Register an IObjectRenderer for typeToRender.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

Maintains a mapping between types that require special rendering and the IObjectRenderer that is used to render them.

The [M:FindAndRender(object)] method is used to render an object using the appropriate renderers defined in this map.

See Also

#### Reference

log4net.ObjectRenderer Namespace