How do I get the values of the properties of a model object in ASP.NET MVC when passed in as an object?
问题 I would like to be able to write to a log the properties of various objects that I might pass to my LogEvent function. I have various objects defined, such as Town, Taxpayer, TaxedProperty, TaxAccount, etc. in my ASP.NET MVC application. I would like to write to some log passing in my object along with a bunch of other information. I am writing this to a database table and I have a large text field in which I can insert a representation of the object that was being processed when a bad thing