此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
备注
访问此页面需要授权。 可以尝试登录或更改目录。
访问此页面需要授权。 可以尝试更改目录。
更新:2007 年 11 月
接口不能包含运算符
interface 定义中不允许有运算符。
下面的示例生成 CS0567:
// CS0567.cs interface IA { int operator +(int aa, int bb); // CS0567 } class Sample { public static void Main() { } }