dynamic obj = new LightDynamic(); obj.Name = "John"; obj.Age = 25;
dynamic[] arr = new LightDynamic[2]; arr[0] = new LightDynamic(); arr[0].Name = "John"; arr[1] = new LightDynamic(); arr[1].Name = "Jane";
dynamic obj = new LightDynamic(); obj.Name = "John"; obj.Age = 25; var dict = obj.ToDictionary();In this example, we create a dynamic object `obj` with two properties `Name` and `Age`. We convert this object to a dictionary `dict` using the `ToDictionary()` method. AstUtils.LightDynamic is a part of the AstUtils package, which is developed by Microsoft as a part of their .NET framework. It is used for creating dynamic objects in C# with ease.