log4net SDK Documentation - Microsoft .NET Framework 4.0

PatternConverter.WriteDictionary Method (TextWriter, ILoggerRepository, IDictionaryEnumerator)

Write an dictionary to a TextWriter

[Visual Basic]
Overloads Protected Shared Sub WriteDictionary( _
   ByVal writer As TextWriter, _
   ByVal repository As ILoggerRepository, _
   ByVal value As IDictionaryEnumerator _
)
[C#]
protected static void WriteDictionary(
   TextWriter writer,
   ILoggerRepository repository,
   IDictionaryEnumerator value
);

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 IDictionaryEnumerator to a writer in the form:

{key1=value1, key2=value2, key3=value3}

If the ILoggerRepository specified is not null then it is used to render the key and value to text, otherwise the object's ToString method is called.

See Also

PatternConverter Class | log4net.Util Namespace | PatternConverter.WriteDictionary Overload List