/* The managed call must not take ownership of the returned string */ public static void return_string() { { test.ITesting obj = new test.Testing(); Test.AssertEquals("string", obj.ReturnString()); } System.GC.Collect(); }