this question has been asked here for js
how to access object property using variable
How to access a dynamic property: objectName.{variable}
however im looking how to do this for asp.net mvc4
the syntax for js gives me errors for .net
basically
trying to access a property of an object using a dynamic variable
so for example
if i have a var k="myProp" and i have an object o
this statement var v = o.k;
would return the value of o.myProp not o.k
(which would return an err if o does not have a property named "k")