Example #1
0
    public void FromNSString()
    {
        string text   = "WOOT";
        IntPtr handle = ObjC.ToNSString(text);
        string actual = ObjC.FromNSString(handle);

        Assert.AreEqual(text, actual);
    }
 public object MarshalNativeToManaged(IntPtr pNativeData)
 {
     if (pNativeData == IntPtr.Zero)
     {
         return(null);
     }
     return(ObjC.FromNSString(pNativeData));
 }
Example #3
0
    public void FromNSStringNull()
    {
        string text = ObjC.FromNSString(IntPtr.Zero);

        Assert.IsNull(text);
    }