/* * Remove */ /// <summary> /// Removes the specified <see cref="T:NuGenReference"/> from this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to remove.</param> public void Remove(NuGenReference reference) { this.List.Remove(reference); }
/* * Add */ /// <summary> /// Adds the specified <see cref="T:NuGenReference"/> to this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to add.</param> public void Add(NuGenReference reference) { this.List.Add(reference); }
/* * IndexOf */ /// <summary> /// Searches for the specified <see cref="T:NuGenReference"/> and returns the zero-based index of /// the first occurrence in this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to locate in this <see cref="T:NuGenReferenceCollection"/>.</param> public int IndexOf(NuGenReference reference) { return this.List.IndexOf(reference); }
/* * Insert */ /// <summary> /// Inserts the <see cref="T:NuGenReference"/> at the specified index into this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="index">Specifes the zero-based index at which the <see cref="T:NuGenReference"/> should be inserted.</param> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to be inserted.</param> public void Insert(int index, NuGenReference reference) { this.List.Insert(index, reference); }
/* * AddRange */ /// <summary> /// Adds the specified <see cref="T:NuGenReference"/> array to this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="references">Specifies the <see cref="T:NuGenReference"/> array to add.</param> /// <exception cref="T:ArgumentNullException"><paramref name="references"/> is <see langword="null"/>.</exception> public void AddRange(NuGenReference[] references) { if (references == null) { throw new ArgumentNullException("references"); } this.InnerList.AddRange(references); }
/* * Contains */ /// <summary> /// Determines whether the specified <see cref="T:NuGenReference"/> is in this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to locate in this /// <see cref="T:NuGenReferenceCollection"/>. The value can be <see langword="null"/>.</param> public bool Contains(NuGenReference reference) { return this.List.Contains(reference); }
/* * IndexOf */ /// <summary> /// Searches for the specified <see cref="T:NuGenReference"/> and returns the zero-based index of /// the first occurrence in this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to locate in this <see cref="T:NuGenReferenceCollection"/>.</param> public int IndexOf(NuGenReference reference) { return(this.List.IndexOf(reference)); }
/* * Contains */ /// <summary> /// Determines whether the specified <see cref="T:NuGenReference"/> is in this <see cref="T:NuGenReferenceCollection"/>. /// </summary> /// <param name="reference">Specifies the <see cref="T:NuGenReference"/> to locate in this /// <see cref="T:NuGenReferenceCollection"/>. The value can be <see langword="null"/>.</param> public bool Contains(NuGenReference reference) { return(this.List.Contains(reference)); }