Render the object obj to a string
Render the object obj to a string.
The rendererMap parameter is provided to lookup and render other objects. This is very useful where obj contains nested objects of unknown type. The FindAndRender method can be used to render these objects.
The default renderer supports rendering objects to strings as follows:
Value | Rendered String |
---|---|
null |
"(null)" |
Array |
For a one dimensional array this is the array type name, an open brace, followed by a comma separated list of the elements (using the appropriate renderer), followed by a close brace. For example: If the array is not one dimensional the |
IEnumerable, ICollection & IEnumerator |
Rendered as an open brace, followed by a comma separated list of the elements (using the appropriate renderer), followed by a close brace. For example: All collection classes that implement ICollection its subclasses, or generic equivalents all implement the IEnumerable interface. |
DictionaryEntry |
Rendered as the key, an equals sign ('='), and the value (using the appropriate renderer). For example: |
other |
|
DefaultRenderer Class | log4net.ObjectRenderer Namespace