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