コード例 #1
0
 public int Add(StubRow value)
 {
     if (value != null)
     {
         return(this.List.Add(value));
     }
     return(-1);
 }
コード例 #2
0
 public void Remove(StubRow value)
 {
     List.Remove(value);
 }
コード例 #3
0
 public void Insert(int index, StubRow value)
 {
     List.Insert(index, value);
 }
コード例 #4
0
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="StubRowCollection">StubRowCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="StubRowCollection">StubRowCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(StubRow value)
 {
     return this.List.IndexOf(value);
 }
コード例 #5
0
 /// <summary>
 /// Copies the collection Components to a one-dimensional <see cref="T:System.Array">Array</see> instance beginning at the specified index.
 /// </summary>
 /// <param name="array">The one-dimensional <see cref="T:System.Array">Array</see> that is the destination of the values copied from the collection.</param>
 /// <param name="index">The index of the array at which to begin inserting.</param>
 public void CopyTo(StubRow[] array, int index)
 {
     this.List.CopyTo(array, index);
 }
コード例 #6
0
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="StubRowCollection">StubRowCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="StubRowCollection">StubRowCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(StubRow value)
 {
     return this.List.Contains(value);
 }
コード例 #7
0
        /// <summary>
        /// Copies the elements of the specified <see cref="StubRow">StubRow</see> array to the end of the collection.
        /// </summary>
        /// <param name="value">An array of type <see cref="StubRow">StubRow</see> containing the Components to add to the collection.</param>
        public void AddRange(StubRow[] value)
        {
            if (value == null)
                throw new ArgumentNullException("value", "Cannot add a range from null.");

            if (value != null)
            {
                for (int i = 0; (i < value.Length); i = (i + 1))
                {
                    this.Add(value[i]);
                }
            }
        }
コード例 #8
0
 public int Add(StubRow value)
 {
     if (value != null)
     {
         return this.List.Add(value);
     }
     return -1;
 }
コード例 #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="StubRowCollection">StubRowCollection</see> class containing the specified array of <see cref="StubRow">StubRow</see> Components.
 /// </summary>
 /// <param name="value">An array of <see cref="StubRow">StubRow</see> Components with which to initialize the collection. </param>
 public StubRowCollection(StubRow[] value)
 {
     if (value != null)
     {
         this.AddRange(value);
     }
 }
コード例 #10
0
 public void Remove(StubRow value)
 {
     List.Remove(value);
 }
コード例 #11
0
 public void Insert(int index, StubRow value)
 {
     List.Insert(index, value);
 }
コード例 #12
0
 /// <summary>
 /// Gets the index in the collection of the specified <see cref="StubRowCollection">StubRowCollection</see>, if it exists in the collection.
 /// </summary>
 /// <param name="value">The <see cref="StubRowCollection">StubRowCollection</see> to locate in the collection.</param>
 /// <returns>The index in the collection of the specified object, if found; otherwise, -1.</returns>
 public int IndexOf(StubRow value)
 {
     return(this.List.IndexOf(value));
 }
コード例 #13
0
 /// <summary>
 /// Gets a value indicating whether the collection contains the specified <see cref="StubRowCollection">StubRowCollection</see>.
 /// </summary>
 /// <param name="value">The <see cref="StubRowCollection">StubRowCollection</see> to search for in the collection.</param>
 /// <returns><b>true</b> if the collection contains the specified object; otherwise, <b>false</b>.</returns>
 public bool Contains(StubRow value)
 {
     return(this.List.Contains(value));
 }