log4net SDK Reference |

# PatternConverter.WriteDictionary Method

Write an dictionary to a TextWriter

[Visual Basic]
Protected Shared Sub WriteDictionary( _
ByVal writer As TextWriter, _
ByVal repository As ILoggerRepository, _
ByVal value As IDictionary _
)
[C#]
protected static void WriteDictionary(
TextWriter writer,
ILoggerRepository repository,
IDictionary 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 IDictionary 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