This article desribes the Object Dumper class which is used to dump the LINQ result to the console.
Recently I encountered the Object Dumper class, which is very useful for LINQ programming. It is used on your object to dump the result to the console.Sometimes we can't show the desired result on the console or for logging. I have used the Employee class to represent the working behavior of the Object Dumper class. Have a look at the class structure and the implementation as shown below in the screen shot:When I run the preceding code segment it shows me the error displayed below:Note: The reason for showing the error above is the ObjEmp object has multiple values in a collection.To resolve this issue we have the Object Dumper class: The Object Dumper class gives you the desired result as shown here:The sample application is attached for a reference.Thanks
Printing in C# Made Easy