c# 10的静态接口属性显然是自动实现的。如何强制覆盖?
public interface IModelLogicEventSubsciptions
{
static EventSubscriptionType EventSubscriptions { get; }
} public interface AnyClass : IModelLogicEventSubsciptions
{
//static EventSubscriptionType EventSubscriptions { get; }
}发布于 2021-09-11 11:08:31
解决方案是将接口成员标记为抽象
public interface IModelLogicEventSubsciptions
{
static abstract EventSubscriptionType EventSubscriptions { get; }
}https://stackoverflow.com/questions/69142196
复制相似问题