阅读背景:

在C#中的界面内使用时,'new'关键字的含义是什么?

来源:互联网 

Developing an interface generic I wished to declare a constructor in an interface but it says constructors are forbidden there. I've tried to declare a static factory method then, but it says neither static methods are allowed and suggests using 'new' keyword. But I have hardly any idea of what could 'new' keyword exactly mean when used inside an interface in C#. Have you?Developing an interface generic I wished to dec




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: