/* The managed call is free to own the returned string */ public static void return_own_string() { { test.ITesting obj = new test.Testing(); Test.AssertEquals("own_string", obj.ReturnOwnString()); } System.GC.Collect(); }