Exemple #1
0
 /* The managed call must not keep ownership of the C string after the
  * call */
 public static void in_own_string()
 {
     {
         var    obj      = new Dummy.TestObject();
         String sent     = "in_own_string";
         String returned = obj.InOwnString(sent);
         Test.AssertEquals(sent, returned);
     }
     System.GC.Collect();
 }