VB.NET class inherits a base class and implements an interface issue (works in C#)

后端 未结 7 1712
后悔当初
后悔当初 2020-12-09 14:53

I am trying to create a class in VB.NET which inherits a base abstract class and also implements an interface. The interface declares a string property called Description. T

7条回答
  •  难免孤独
    2020-12-09 15:37

    VB.NET does not support implicit implementation. I also ran into this issue and had a lot of trouble.

    When you work with generated classes (entities etc.) where you have to explicitly declare Implements IFoo, it makes it impossible at all.

    Therefore I submitted a connection to Microsoft and I hope you'll vote and next version of VB they will improve the compiler to be more clever.

提交回复
热议问题