是否可以仅允许某些特定类实现iterface?假设我创建了接口IMyInterface,我只希望从中派生的类UserControl能够实现我的接口.这可能吗?
IMyInterface
UserControl
c# inheritance interface
c# ×1
inheritance ×1
interface ×1