Hello,
I am using dynamically emitted properties in inherited classes in my
data access layer :-)
Now, someone started not only defining the interface on the class, but
also on an interface, and putting the interface onto the class.
As a result, my call to
MethodInfo getStorage = pi.GetGetMethod(true);
// Track down the indexed property on the Data class
Type storageType = getStorage.ReturnType;
MemberInfo[] defaultMembers = storageType.GetDefaultMembers();
Suddenly returns an array of TWO default members.
I tried to implement only one of them (the first), but this does not
work - I get an exception later when baking the type that not everything
is implemented.
My question - do I REALLY have to emit bytecode for tboth, the abstract
class property AND the interface property? Or is there an easier way?
Regards
Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.