/// <summary> /// Determines whether the <see cref="BasePeerToPeerConfigCollection"/> contains a specific element. /// </summary> /// <param name="value">The <see cref="BasePeerToPeerConfig"/> to locate in the <see cref="BasePeerToPeerConfigCollection"/>.</param> /// <returns> /// <c>true</c> if the <see cref="BasePeerToPeerConfigCollection"/> contains the specified value; /// otherwise, <c>false</c>. /// </returns> public bool Contains(BasePeerToPeerConfig value) { // If value is not of type Code, this will return false. return (List.Contains(value)); }
/// <summary> /// Adds an object to the end of the <see cref="BasePeerToPeerConfigCollection"/>. /// </summary> /// <param name="value">The <see cref="BasePeerToPeerConfig"/> to be added to the end of the <see cref="BasePeerToPeerConfigCollection"/>.</param> /// <returns>The <see cref="BasePeerToPeerConfigCollection"/> index at which the value has been added.</returns> public int Add(BasePeerToPeerConfig value) { return (List.Add(value)); }
/// <summary> /// Removes the first occurrence of a specific <see cref="BasePeerToPeerConfig"/> from the <see cref="BasePeerToPeerConfigCollection"/>. /// </summary> /// <param name="value">The <see cref="BasePeerToPeerConfig"/> to remove from the <see cref="BasePeerToPeerConfigCollection"/>.</param> public void Remove(BasePeerToPeerConfig value) { List.Remove(value); }
/// <summary> /// Inserts an <see cref="BasePeerToPeerConfig"/> element into the <see cref="BasePeerToPeerConfigCollection"/> at the specified index. /// </summary> /// <param name="index">The zero-based index at which value should be inserted.</param> /// <param name="value">The <see cref="BasePeerToPeerConfig"/> to insert.</param> public void Insert(int index, BasePeerToPeerConfig value) { List.Insert(index, value); }
/// <summary> /// Searches for the specified <see cref="BasePeerToPeerConfig"/> and /// returns the zero-based index of the first occurrence within the entire <see cref="BasePeerToPeerConfigCollection"/>. /// </summary> /// <param name="value">The <see cref="BasePeerToPeerConfig"/> to locate in the <see cref="BasePeerToPeerConfigCollection"/>.</param> /// <returns> /// The zero-based index of the first occurrence of value within the entire <see cref="BasePeerToPeerConfigCollection"/>, /// if found; otherwise, -1. /// </returns> public int IndexOf(BasePeerToPeerConfig value) { return (List.IndexOf(value)); }
/// <summary> /// Copies the elements of the <see cref="ICollection"/> to a strong-typed <c>BasePeerToPeerConfig[]</c>, /// starting at a particular <c>BasePeerToPeerConfig[]</c> index. /// </summary> /// <param name="array"> /// The one-dimensional <c>BasePeerToPeerConfig[]</c> that is the destination of the elements /// copied from <see cref="ICollection"/>. /// The <c>BasePeerToPeerConfig[]</c> must have zero-based indexing. /// </param> /// <param name="index"> /// The zero-based index in array at which copying begins. /// </param> /// <remarks> /// Provides the strongly typed member for <see cref="ICollection"/>. /// </remarks> public void CopyTo(BasePeerToPeerConfig[] array, int index) { ((ICollection)this).CopyTo(array, index); }