阅读背景:

.NET泛型中重载运算符约束的解决方案

来源:互联网 

What would I do if I want to have a generic method that only accepts types that have overloaded an operator, for instance the subtraction operator. I tried using an interface as a constraint but interfaces can't have operator overloading. What would I do if I want to have a generic met




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

分享到: