Exemple #1
0
 private void setitem(int index, Lock val)
 {
     colaPINVOKE.ColaLocks_setitem(swigCPtr, index, Lock.getCPtr(val));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #2
0
 public void Insert(int index, Lock x)
 {
     colaPINVOKE.ColaLocks_Insert(swigCPtr, index, Lock.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #3
0
 public void Add(Lock x)
 {
     colaPINVOKE.ColaLocks_Add(swigCPtr, Lock.getCPtr(x));
     if (colaPINVOKE.SWIGPendingException.Pending)
     {
         throw colaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Exemple #4
0
        public static ColaLocks Repeat(Lock value, int count)
        {
            IntPtr    cPtr = colaPINVOKE.ColaLocks_Repeat(Lock.getCPtr(value), count);
            ColaLocks ret  = (cPtr == IntPtr.Zero) ? null : new ColaLocks(cPtr, true);

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