C++/CLI: Explicitly Implement Interface Properties
In case you ever wondered how to explicitly implement interface properties in C++/CLI that collide with an already existing better typed property: It's quite easy, but I didn't find a sample in neither the language specification nor the web.
Imagine you have some already existing generic ItemBuilder class:
1: 2: 3: 4: 5: 6: 7: 8: 9: |
|
But now you want to generalize it, to be able to access the prototype property as Item, independent of the actual generic class type. So you define an interface IItemBuilder:
1: 2: 3: 4: |
|
How to explicitly implement this interface in ItemBuilder in C++/CLI?
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: |
|
Let me know if you know a better approach...