Getting a property reference using reflection
问题 var a = new obj(); var property = a.GetType().GetProperty("DB").GetValue(a,null) as testObject; does this mean that the variable property hold a reference to the the same object that i got in object a , or a new testObject was made that holds the same values? if this means creating a new object, then how can i get the reference to that property/backing field using reflection? 回答1: property now holds a referece to whatever is in a 's DB property. I'm not sure though what happens when you call