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