OpenTransactions.OTAPI.Contact.getCPtr C# (CSharp) Method

getCPtr() static private method

static private getCPtr ( Contact obj ) : HandleRef
obj Contact
return HandleRef
        internal static HandleRef getCPtr(Contact obj)
        {
            return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
        }

Usage Example

Exemplo n.º 1
0
        public bool AddContact(Contact disownObject)
        {
            bool ret = otapiPINVOKE.AddressBook_AddContact(swigCPtr, Contact.getCPtr(disownObject));

            if (otapiPINVOKE.SWIGPendingException.Pending)
            {
                throw otapiPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }