c# 9.0 covariant return types and interfaces

前端 未结 0 610
心在旅途
心在旅途 2020-12-10 15:15

I have so code examples:

One compiles

    class C {
        public virtual object Method2() => throw new NotImplementedException();
    }

    class         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题