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