现在,当调用COM接口提供的方法时,用于方法调用者的ref关键字是可选的。给定带有签名的COM方法
void Increment(ref int x);
现在可以将调用编写为
Increment(0); // no need for "ref" or a place holder variable any more