コード例 #1
0
 public ComponentVector(ComponentVector other) : this(SharpMochaPINVOKE.new_ComponentVector__SWIG_1(ComponentVector.getCPtr(other)), true)
 {
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #2
0
 public ComponentVectorEnumerator(ComponentVector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
コード例 #3
0
 public void SetRange(int index, ComponentVector values)
 {
     SharpMochaPINVOKE.ComponentVector_SetRange(swigCPtr, index, ComponentVector.getCPtr(values));
     if (SharpMochaPINVOKE.SWIGPendingException.Pending)
     {
         throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
     }
 }
コード例 #4
0
        public static ComponentVector Repeat(Component value, int count)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.ComponentVector_Repeat(Component.getCPtr(value), count);
            ComponentVector       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ComponentVector(cPtr, true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #5
0
        public ComponentVector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = SharpMochaPINVOKE.ComponentVector_GetRange(swigCPtr, index, count);
            ComponentVector       ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ComponentVector(cPtr, true);

            if (SharpMochaPINVOKE.SWIGPendingException.Pending)
            {
                throw SharpMochaPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #6
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ComponentVector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }