Esempio n. 1
0
 /// <summary>
 /// Searches for the specified <see cref="ScopedElement"/> and returns the zero-based index of the first occurrence
 /// within the entire <see cref="ScopedElementCollection"/>.
 /// </summary>
 /// <param name="element">The <see cref="ScopedElement"/> to locate in the <see cref="ScopedElementCollection"/>.</param>
 /// <returns>The zero-based index of the first occurrence of <i>element</i> within the entire <see cref="ScopedElementCollection"/>,
 /// if found; otherwise, -1.</returns>
 public int IndexOf(ScopedElement element)
 {
     return(List.IndexOf(element));
 }
Esempio n. 2
0
 /// <summary>
 /// Determines whether the <see cref="ScopedElementCollection"/> contains a specific element.
 /// </summary>
 /// <param name="element">The <see cref="ScopedElement"/> to locate in the <see cref="ScopedElementCollection"/>.</param>
 /// <returns>true if the <see cref="ScopedElementCollection"/> contains the specified item, otherwise false.</returns>
 public bool Contains(ScopedElement element)
 {
     return(this.List.Contains(element));
 }
Esempio n. 3
0
 /// <summary>Removes the first occurrence of a specific <see cref="ScopedElement"/>
 /// from the <see cref="ScopedElementCollection"/>.</summary>
 /// <param name="element">The <see cref="ScopedElement"/> to remove from the <see cref="ScopedElementCollection"/>.</param>
 public void Remove(ScopedElement element)
 {
     List.Remove(element);
 }
Esempio n. 4
0
 /// <summary>
 /// Adds an object to the end of the <see cref="ScopedElementCollection"/>.
 /// </summary>
 /// <param name="element">The <see cref="ScopedElement"/> to be added to the end of
 /// the <see cref="ScopedElementCollection"/>.</param>
 /// <returns>The <see cref="ScopedElementCollection"/> index at which the value has been added.</returns>
 public int Add(ScopedElement element)
 {
     return(this.List.Add(element));
 }
Esempio n. 5
0
 /// <summary>Inserts a <see cref="ScopedElement"/> into this collection at the specified index.</summary>
 /// <param name="index">The zero-based index of the collection at which <i>element</i> should be inserted.</param>
 /// <param name="element">The <see cref="ScopedElement"/> to insert into this collection.</param>
 public void Insert(int index, ScopedElement element)
 {
     List.Insert(index, element);
 }