Creating a dynamic object with properties

suggest change
using System;
using System.Dynamic;

dynamic info = new ExpandoObject();
info.Id = 123;
info.Another = 456;

Console.WriteLine(info.Another);
// 456

Console.WriteLine(info.DoesntExist);
// Throws RuntimeBinderException

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents