If you ever need to work with all of the properties in some object, you can use GetType and GetProperties to retrieve the object's PropertyInfo objects. After that you can do what you want. Here's an ...
The anonymous object contains the HTML attributes that the framework will add to my input element. This works fine, except that the "autocomplete" attribute isn't valid on the input element. I'd like ...