Hello
I would like to create a variable that can have dynamic properties.
Like MVC view bag, that u can append properties as you like:
ViewBag.MyName
ViewBag.Solution
etc
what dynamic type should be used for this please?
Thanks in advanced!
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pradeep ChandrakerPosted Jun 13, 2011, 2:41 PM
eddy ukPosted Jun 13, 2011, 2:33 PM
VulpesPosted Jun 13, 2011, 2:03 PM
See http://msdn.microsoft.com/en-us/library/system.dynamic.expandoobject.aspx