Is it possible to build dynamic objects having the property name set to the value of a variable?
for instance this seems standard...
dynamic elem = new Object();
elem.Name = "myName";
but how would this be implemented?...
string fn = "FirstName";
string ln = "LastName";
dynamic elem = new Object();
elem.fn = "John";
elem.ln = "Doe";
where as i would be able to call the properties like...
string fn = elem.FirstName;
for instance this seems standard...No It can not work, object doesn't have a property Name..... Post compilable/correct codeDictionary<string,object>. If that does not meet your needs then please add to your question, but the syntax you propose is not possible in C#.