I am creating composable WinRT component in C# and trying to add virtual method definition:
namespace FooComponent {
[EnableComposition]
public class Foo {
public virtual void Bar() { }
}
}
I've got an error from winmd export utility standing that "virtual method declaration is not allowed in managed WinRT components". But it is really easy to create such component in C++.
What is the reason to restict the ability to define custom virtual methods in a composable WinRT components, defined in managed code? What is the purpose of ability to enable implementation inheritance without custom virtual methods?