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