Home » dynamic
It’s really easy to have in ASP.NET MVC a function that return an anonymous type. I say in ASP.NET MVC but this could be also in ASP.NET. In fact, when you have an action inside a controller that return a JsonResult you can simply return an anonymous type and Javascript will be able to handle it as simple as using the same syntax that you would...
I never really used the dynamic keyword in a real application. I did some tutorials but not much.
This week, I got a situation where I was getting from Silverlight a Json object that I did not want to create an object for.
string response = HtmlPage.Window.Invoke("GetMyJson").ToString();
MyObject data = (MyObject)JsonConvert.DeserializeObject(response);
But,...
Filed in: dynamic