/* The managed call is the owner of the string in the out parameter */ public static void out_own_string() { { String str = String.Empty; test.ITesting obj = new test.Testing(); obj.OutOwnString(out str); Test.AssertEquals(str.ToString(), "out_own_string"); } System.GC.Collect(); }