/// <summary> /// Initializes a new instance of the CsvFileColumnCollection class, containing elements /// copied from an array. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the new CsvFileColumnCollection. /// </param> public CsvColumnCollection(CsvColumn[]items) { this.AddRange(items); }
/// <summary> /// Adds the elements of an array to the end of this CsvFileColumnCollection. /// </summary> /// <param name="items"> /// The array whose elements are to be added to the end of this CsvFileColumnCollection. /// </param> public virtual void AddRange(CsvColumn[]items) { foreach (CsvColumn item in items) { this.List.Add(item); } }
/// <summary> /// Removes the first occurrence of a specific CsvFileColumn from this CsvFileColumnCollection. /// </summary> /// <param name="value"> /// The CsvFileColumn value to remove from this CsvFileColumnCollection. /// </param> public virtual void Remove(CsvColumn value) { this.List.Remove(value); }
/// <summary> /// Inserts an element into the CsvFileColumnCollection at the specified index /// </summary> /// <param name="index"> /// The index at which the CsvFileColumn is to be inserted. /// </param> /// <param name="value"> /// The CsvFileColumn to insert. /// </param> public virtual void Insert(int index, CsvColumn value) { this.List.Insert(index, value); }
/// <summary> /// Return the zero-based index of the first occurrence of a specific value /// in this CsvFileColumnCollection /// </summary> /// <param name="value"> /// The CsvFileColumn value to locate in the CsvFileColumnCollection. /// </param> /// <returns> /// The zero-based index of the first occurrence of the _ELEMENT value if found; /// -1 otherwise. /// </returns> public virtual int IndexOf(CsvColumn value) { return this.List.IndexOf(value); }
/// <summary> /// Determines whether a specfic CsvFileColumn value is in this CsvFileColumnCollection. /// </summary> /// <param name="value"> /// The CsvFileColumn value to locate in this CsvFileColumnCollection. /// </param> /// <returns> /// true if value is found in this CsvFileColumnCollection; /// false otherwise. /// </returns> public virtual bool Contains(CsvColumn value) { return this.List.Contains(value); }
/// <summary> /// Adds an instance of type CsvFileColumn to the end of this CsvFileColumnCollection. /// </summary> /// <param name="value"> /// The CsvFileColumn to be added to the end of this CsvFileColumnCollection. /// </param> public virtual void Add(CsvColumn value) { this.List.Add(value); }