accessing-properties-via

C# Using the Dynamic keyword to access properties via strings without reflection

I would like to write something similar to the following: // I will pass in a number of "properties" specified as strings that I want modified string[] properties = new [] { "AllowEdit", "AllowDelete" }; // Casting the component I'm using to a dynamic object of some sort ? dynamic d = myGridComponent; // Iterate over the strings an...