out int a=1 str b="one" out F"a={a}, b={b}" CsScript x.AddCode("") IDispatch d=x.CreateObject("Test") BSTR _b=b d.PassByRef(&a &_b) b=_b out F"a={a}, b={b}" #ret using System; public class Test { ,public void PassByRef(ref int x, ref string y) ,{ ,,x = 100; ,,y = "two"; ,} }