What is the expandoObject c#



The ExpandoObject. Let''s jump straight to an example, so you can see how easy it is to use:

dynamic user = new System.Dynamic.ExpandoObject();
user.Name = "Csharp Code";
user.Age = 42;
user.HomeTown = "Delhi";
Console.WriteLine(user.Name + " is " + user.Age + " years old and lives in " + user.HomeTown);

0 Comment's

Comment Form

Submit Comment