What is the use of 'abstract override' in C#?

前端 未结 7 980
梦如初夏
梦如初夏 2020-11-27 17:44

Just out of curiosity I tried overriding a abstract method in base class, and method the implementation abstract. As below:

public abstract class FirstAbstra         


        
7条回答
  •  没有蜡笔的小新
    2020-11-27 18:27

    Interestingly enough, the Roslyn version of the C# compiler has an abstract override method in it, which I found odd enough to write an article about:

    http://ericlippert.com/2011/02/07/strange-but-legal/

提交回复
热议问题