Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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);
 }
Пример #3
0
 /// <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));
 }
Пример #4
0
 /// <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));
 }
Пример #5
0
 /// <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));
 }