3 ms·
the new Dynamic View and ViewModel properties is a great addition to mvc3
by michalmarko 16y ago
the new Dynamic View and ViewModel properties is a great addition to mvc3
- traskjd 16y agoWhy? In particular Dynamic view models? What is the benefit of adding this third way of expressing your view model objects?
- gokhan 16y agoClearer syntax. No need to define another ViewModel object for each page. Ability to refactor. Getting rid of naming the param as text. ViewModel["Something"] = "Other"; vs ViewModel.Something = "Other"; The best use case for dynamic IMO.
- vyrotek 16y agoWhile I think this is a neat use of dynamic, I think I'm still going to stick with my strongly typed models. More specifically, I really like the 'ViewModel' technique. I won't give up my Intellisense and Compile Time validation anytime soon.