I have a object set to lazy, it will actually generate a proxy object for me.
Then my code make sure the proxy object is initialized.
Then I want to use reflection: obj.GetType().GetProperty(...) to deal with the properties of that object. I got this exception.
Code:
System.Reflection.AmbiguousMatchException: Ambiguous match found.
I think proxy should be a sub-class of the real object, there should not be problem for me to get the properties. Is this dynamic-proxy has some tricky way to override the property, so that when I use reflection on the object, it actually contain Ambiguous properties?
Any Reflection expert Please help