3 ms·
Why? In particular Dynamic view models? What is the benefit of adding this third way of expressing your view model objects?
by traskjd 16y ago
Why? 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.