Last post Dec 19, 2017 01:26 PM by PatriceSc
Dec 19, 2017 01:09 PM|tridip1974|LINK
i know that it is possible if we use ExpandoObject
dynamic expando = new ExpandoObject();
expando.Name = "Brian";
expando.Country = "USA";
tell me other way exist to do the same without using ExpandoObject ?
Dec 19, 2017 01:26 PM|PatriceSc|LINK
Maybe https://blogs.msdn.microsoft.com/csharpfaq/2009/10/19/dynamic-in-c-4-0-creating-wrappers-with-dynamicobject/ ?
There is not tons of solutions anyway but if you need further help it would be easier to explain your overall goal and why ExpandoObject doesn't fit your needs.
Ah this is the function part that you need ? IMO a delegate property should work but still the bigger picture may help. How will you know somewhere else in your code which functions could be called ?