MyClass equivalent in C#

前端 未结 3 1231
醉梦人生
醉梦人生 2021-02-18 22:33

In looking at this question, commenter @Jon Egerton mentioned that MyClass was a keyword in VB.Net. Having never used it, I went and found the document

3条回答
  •  太阳男子
    2021-02-18 23:11

    There is no C# equivalent of the MyClass keyword in VB.Net. To guarantee that an overridden version of a method will not be called, simply make it non-virtual.

提交回复
热议问题