Search code examples
c#debuggingextension-methodsliteralsrender-to-string

Is there: C# literals library


Is there a ToString C# library for different data structures, and built in classes?

Same as extension methods libraries? I imagine many developers use them for debugging, seeing what the data contains.

For example: Debug.Writeline(dict); may give me the following:

new Dictionary<string,string>() {{ "abc", "def" } , {"lmn", "opq"}};

or a different style.

Thanks.


Solution

  • You might want to try out this library: http://www.servicestack.net/mythz_blog/?p=202. Anyway somebody else made a similar question before: How to use the LinqPad .Dump() extension method in Visual Studio?