public int IndexOf(ReplicationNeighbor neighbor)
        {
            if (neighbor == null)
                throw new ArgumentNullException("neighbor");

            return InnerList.IndexOf(neighbor);
        }
        public bool Contains(ReplicationNeighbor neighbor)
        {
            if (neighbor == null)
                throw new ArgumentNullException("neighbor");

            return InnerList.Contains(neighbor);
        }
    public int IndexOf(ReplicationNeighbor neighbor)
    {
      Contract.Requires(neighbor != null);
      Contract.Ensures(Contract.Result<int>() >= -1);
      Contract.Ensures(Contract.Result<int>() < this.Count);

      return default(int);
    }
        public int IndexOf(ReplicationNeighbor neighbor)
        {
            Contract.Requires(neighbor != null);
            Contract.Ensures(Contract.Result <int>() >= -1);
            Contract.Ensures(Contract.Result <int>() < this.Count);

            return(default(int));
        }
 public int IndexOf(ReplicationNeighbor neighbor)
 {
     if (neighbor == null)
     {
         throw new ArgumentNullException("neighbor");
     }
     return(base.InnerList.IndexOf(neighbor));
 }
 public bool Contains(ReplicationNeighbor neighbor)
 {
     if (neighbor == null)
     {
         throw new ArgumentNullException("neighbor");
     }
     return(base.InnerList.Contains(neighbor));
 }
		internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
		{
			int num = neighbors.cNumNeighbors;
			for (int i = 0; i < num; i++)
			{
				IntPtr intPtr = (IntPtr)((long)info + (long)(Marshal.SizeOf(typeof(int)) * 2) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR))));
				ReplicationNeighbor replicationNeighbor = new ReplicationNeighbor(intPtr, this.server, this.nameTable);
				this.Add(replicationNeighbor);
			}
		}
		public bool Contains(ReplicationNeighbor neighbor)
		{
			if (neighbor != null)
			{
				return base.InnerList.Contains(neighbor);
			}
			else
			{
				throw new ArgumentNullException("neighbor");
			}
		}
		public int IndexOf(ReplicationNeighbor neighbor)
		{
			if (neighbor != null)
			{
				return base.InnerList.IndexOf(neighbor);
			}
			else
			{
				throw new ArgumentNullException("neighbor");
			}
		}
 internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
 {
     int cNumNeighbors = neighbors.cNumNeighbors;
     IntPtr zero = IntPtr.Zero;
     for (int i = 0; i < cNumNeighbors; i++)
     {
         zero = (IntPtr) ((((long) info) + (Marshal.SizeOf(typeof(int)) * 2)) + (i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR))));
         ReplicationNeighbor neighbor = new ReplicationNeighbor(zero, this.server, this.nameTable);
         this.Add(neighbor);
     }
 }
        internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
        {
            int num = neighbors.cNumNeighbors;

            for (int i = 0; i < num; i++)
            {
                IntPtr intPtr = (IntPtr)((long)info + (long)(Marshal.SizeOf(typeof(int)) * 2) + (long)(i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR))));
                ReplicationNeighbor replicationNeighbor = new ReplicationNeighbor(intPtr, this.server, this.nameTable);
                this.Add(replicationNeighbor);
            }
        }
        internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
        {
            int    cNumNeighbors = neighbors.cNumNeighbors;
            IntPtr zero          = IntPtr.Zero;

            for (int i = 0; i < cNumNeighbors; i++)
            {
                zero = (IntPtr)((((long)info) + (Marshal.SizeOf(typeof(int)) * 2)) + (i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR))));
                ReplicationNeighbor neighbor = new ReplicationNeighbor(zero, this.server, this.nameTable);
                this.Add(neighbor);
            }
        }
        internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
        {
            // get the count
            int count = neighbors.cNumNeighbors;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(int)) * 2 + i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR)));

                ReplicationNeighbor managedNeighbor = new ReplicationNeighbor(addr, _server, _nameTable);

                Add(managedNeighbor);
            }
        }
Example #14
0
        internal void AddHelper(DS_REPL_NEIGHBORS neighbors, IntPtr info)
        {
            // get the count
            int count = neighbors.cNumNeighbors;

            IntPtr addr = (IntPtr)0;

            for (int i = 0; i < count; i++)
            {
                addr = IntPtr.Add(info, Marshal.SizeOf(typeof(int)) * 2 + i * Marshal.SizeOf(typeof(DS_REPL_NEIGHBOR)));

                ReplicationNeighbor managedNeighbor = new ReplicationNeighbor(addr, _server, _nameTable);

                Add(managedNeighbor);
            }
        }
		public void CopyTo(ReplicationNeighbor[] neighbors, int index)
		{
			base.InnerList.CopyTo(neighbors, index);
		}
 private int Add(ReplicationNeighbor neighbor) => InnerList.Add(neighbor);
Example #17
0
 private int Add(ReplicationNeighbor neighbor)
 {
     return(InnerList.Add(neighbor));
 }
        public bool Contains(ReplicationNeighbor neighbor)
        {
            Contract.Requires(neighbor != null);

            return(default(bool));
        }
 public bool Contains(ReplicationNeighbor neighbor)
 {
     throw new NotImplementedException();
 }
    public void CopyTo(ReplicationNeighbor[] neighbors, int index)
    {
      Contract.Requires(neighbors != null);
      Contract.Requires(index >= 0);

    }
 public int IndexOf(ReplicationNeighbor neighbor)
 {
     throw new NotImplementedException();
 }
    public bool Contains(ReplicationNeighbor neighbor)
    {
      Contract.Requires(neighbor!= null);

      return default(bool);
    }
		public void CopyTo (ReplicationNeighbor[] neighbors, int index)
		{
			throw new NotImplementedException ();
		}
		public int IndexOf (ReplicationNeighbor neighbor)
		{
			throw new NotImplementedException ();
		}
		public bool Contains (ReplicationNeighbor neighbor)
		{
			throw new NotImplementedException ();
		}
		private int Add(ReplicationNeighbor neighbor)
		{
			return base.InnerList.Add(neighbor);
		}