3
Answers

dynamic keyword - creating ViewBag alike behaviour

Photo of eddy uk

eddy uk

14y
3.9k
1
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!

Answers (3)