Inheriting from class that inherits from DynamicObject
- by SeveQ
Hello there,
I'm experimenting with C# 4.0's dynamic object model.
I've created an abstract class named "Block" that inherits from DynamicObject. It overrides TryGetMember and TrySetMember.
Furthermore I've created a usable class named "Brush" that inherits from "Block". I want it to be usable dynamically.
But when I create a dynamic object from it and try to access a runtime bound member, it pelts me with an exception telling me that the member doesn't exist. The overridden TryGetMember or TrySetMember methods of the abstract parent class aren't getting called.
Is this behaviour to be expected?
Thank you!