( , .)
, :
public void Foo(string x) { ... }
public void Foo(ref string x) { ... }
...
string x = "";
Foo(x);
, ... , # , :
ref ( out)- ref/out, , ,
- , (, ). , .
, # 4 ref COM-, ref, ref (, , ). , :
ComMethod(x);
:
MyType tmp = x;
ComMethod (ref tmp);
COM, , .