コード例 #1
0
        public int IndexOf(ReplicationOperation operation)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            return InnerList.IndexOf(operation);
        }
コード例 #2
0
        public bool Contains(ReplicationOperation operation)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            return InnerList.Contains(operation);
        }
コード例 #3
0
        internal ReplicationOperation GetFirstOperation()
        {
            ReplicationOperation item = (ReplicationOperation)base.InnerList[0];

            base.InnerList.RemoveAt(0);
            return(item);
        }
        public int IndexOf(ReplicationOperation operation)
        {
            Contract.Requires(operation != null);
            Contract.Ensures(Contract.Result <int>() >= -1);
            Contract.Ensures(Contract.Result <int>() < this.Count);

            return(default(int));
        }
コード例 #5
0
        internal ReplicationOperation GetFirstOperation()
        {
            ReplicationOperation op = (ReplicationOperation)InnerList[0] !;

            InnerList.RemoveAt(0);

            return(op);
        }
コード例 #6
0
 public bool Contains(ReplicationOperation operation)
 {
     if (operation == null)
     {
         throw new ArgumentNullException("operation");
     }
     return(base.InnerList.Contains(operation));
 }
コード例 #7
0
 public int IndexOf(ReplicationOperation operation)
 {
     if (operation == null)
     {
         throw new ArgumentNullException("operation");
     }
     return(base.InnerList.IndexOf(operation));
 }
    public int IndexOf(ReplicationOperation operation)
    {
      Contract.Requires(operation != null);
      Contract.Ensures(Contract.Result<int>() >= -1);
      Contract.Ensures(Contract.Result<int>() < this.Count);

      return default(int);
    }
コード例 #9
0
		internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
		{
			int num = operations.cNumPendingOps;
			for (int i = 0; i < num; i++)
			{
				IntPtr intPtr = (IntPtr)((long)info + (long)Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_OP))));
				ReplicationOperation replicationOperation = new ReplicationOperation(intPtr, this.server, this.nameTable);
				this.Add(replicationOperation);
			}
		}
 internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
 {
     int cNumPendingOps = operations.cNumPendingOps;
     IntPtr zero = IntPtr.Zero;
     for (int i = 0; i < cNumPendingOps; i++)
     {
         zero = (IntPtr) ((((long) info) + Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS))) + (i * Marshal.SizeOf(typeof(DS_REPL_OP))));
         ReplicationOperation operation = new ReplicationOperation(zero, this.server, this.nameTable);
         this.Add(operation);
     }
 }
コード例 #11
0
		public bool Contains(ReplicationOperation operation)
		{
			if (operation != null)
			{
				return base.InnerList.Contains(operation);
			}
			else
			{
				throw new ArgumentNullException("operation");
			}
		}
コード例 #12
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            int num = operations.cNumPendingOps;

            for (int i = 0; i < num; i++)
            {
                IntPtr intPtr = (IntPtr)((long)info + (long)Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_OP))));
                ReplicationOperation replicationOperation = new ReplicationOperation(intPtr, this.server, this.nameTable);
                this.Add(replicationOperation);
            }
        }
コード例 #13
0
		public int IndexOf(ReplicationOperation operation)
		{
			if (operation != null)
			{
				return base.InnerList.IndexOf(operation);
			}
			else
			{
				throw new ArgumentNullException("operation");
			}
		}
コード例 #14
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            int    cNumPendingOps = operations.cNumPendingOps;
            IntPtr zero           = IntPtr.Zero;

            for (int i = 0; i < cNumPendingOps; i++)
            {
                zero = (IntPtr)((((long)info) + Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS))) + (i * Marshal.SizeOf(typeof(DS_REPL_OP))));
                ReplicationOperation operation = new ReplicationOperation(zero, this.server, this.nameTable);
                this.Add(operation);
            }
        }
コード例 #15
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            // get the count
            int count = operations.cNumPendingOps;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + i * Marshal.SizeOf(typeof(DS_REPL_OP)));
                ReplicationOperation managedOperation = new ReplicationOperation(addr, _server, _nameTable);

                Add(managedOperation);
            }
        }
コード例 #16
0
        internal void AddHelper(DS_REPL_PENDING_OPS operations, IntPtr info)
        {
            // get the count
            int count = operations.cNumPendingOps;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(DS_REPL_PENDING_OPS)) + i * Marshal.SizeOf(typeof(DS_REPL_OP)));
                ReplicationOperation managedOperation = new ReplicationOperation(addr, _server, _nameTable);

                Add(managedOperation);
            }
        }
コード例 #17
0
		public int IndexOf (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}
 private int Add(ReplicationOperation operation)
 {
     return base.InnerList.Add(operation);
 }
コード例 #19
0
		public void CopyTo (ReplicationOperation[] operations, int index)
		{
			throw new NotImplementedException ();
		}
コード例 #20
0
 private int Add(ReplicationOperation operation)
 {
     return(base.InnerList.Add(operation));
 }
コード例 #21
0
		private int Add (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}
コード例 #22
0
 private int Add(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
 public void CopyTo(ReplicationOperation[] operations, int index)
 {
     base.InnerList.CopyTo(operations, index);
 }
        public bool Contains(ReplicationOperation operation)
        {
            Contract.Requires(operation != null);

            return(default(bool));
        }
    public bool Contains(ReplicationOperation operation)
    {
      Contract.Requires(operation != null);

      return default(bool);
    }
    public void CopyTo(ReplicationOperation[] operations, int index)
    {
      Contract.Requires(operations != null);
      Contract.Requires(index >= 0);

    }
コード例 #27
0
 private int Add(ReplicationOperation operation) => InnerList.Add(operation);
コード例 #28
0
 public int IndexOf(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
コード例 #29
0
 public bool Contains(ReplicationOperation operation)
 {
     throw new NotImplementedException();
 }
コード例 #30
0
		public bool Contains (ReplicationOperation operation)
		{
			throw new NotImplementedException ();
		}