Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

PatternConverter.WriteObject�Method�

Write an object to a TextWriter

[Visual�Basic]
Protected�Shared�Sub�WriteObject( _
���ByVal writer�As�TextWriter,�_
���ByVal repository�As�ILoggerRepository,�_
���ByVal value�As�Object�_
)
[C#]
protected�static�void�WriteObject(
���TextWriterwriter,
���ILoggerRepositoryrepository,
���objectvalue
);

Parameters

writer
the writer to write to
repository
a ILoggerRepository to use for object conversion
value
the value to write to the writer

Remarks

Writes the Object to a writer. If the ILoggerRepository specified is not null then it is used to render the object to text, otherwise the object's ToString method is called.

See Also

PatternConverter Class | log4net.Util Namespace