4 ms·
Clearer syntax. No need to define another ViewModel object for each page. Ability to refactor. Getting rid of naming the param as text. ViewModel["Something"]
by gokhan 16y ago
Clearer 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.