I have an ASP.NET MVC view that exists only for testing and diagnostic purposes. After some time, I give it a completely different object (model) and visualize its properties to see the state of the object. However, this requires that the view be changed for each object.
How to create an object dumper view? For an object-oriented view, I mean a view that does not need to be changed in any way, to change its associated model. For example, when passing a user object or a product object or anything else, the view remains intact, but it still functions correctly.
return View(user); return View(product); return View(googleAnalyticsFeed);
source share