RendererMap FindAndRender Method (Object, TextWriter) | Apache log4net™ SDK Documentation

Render obj using the appropriate renderer.

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

C#
VB
C++
F#
Copy

    public void FindAndRender(
    	Object obj,
    	TextWriter writer
    )

    Public Sub FindAndRender (
    	obj As Object,
    	writer As TextWriter
    )

    public:
    void FindAndRender(
    	Object^ obj,
    	TextWriter^ writer
    )

    member FindAndRender :
            obj : Object *
            writer : TextWriter -> unit

#### Parameters

obj
  Type: System
  Object
  the object to render to a string
writer
  Type: System.IO
  TextWriter
  The writer to render to

Remarks

Find the appropriate renderer for the type of the obj parameter. This is accomplished by calling the [M:Get(Type)] method. Once a renderer is found, it is applied on the object obj and the result is returned as a String.

See Also

#### Reference

RendererMap Class
FindAndRender Overload
log4net.ObjectRenderer Namespace