Esempio n. 1
0
        /// <summary>
        /// Adds an instance of type AttributeDeclaration to the end of this AttributeDeclarationCollection.
        /// </summary>
        /// <param name="value">
        /// The AttributeDeclaration to be added to the end of this AttributeDeclarationCollection.
        /// </param>
        public virtual AttributeDeclaration Add(ITypeDeclaration type)
        {
            AttributeDeclaration attr = new AttributeDeclaration(type);

            this.List.Add(attr);
            return(attr);
        }
 /// <summary>
 /// Determines whether a specfic AttributeDeclaration value is in this AttributeDeclarationCollection.
 /// </summary>
 /// <param name="value">
 /// The AttributeDeclaration value to locate in this AttributeDeclarationCollection.
 /// </param>
 /// <returns>
 /// true if value is found in this AttributeDeclarationCollection;
 /// false otherwise.
 /// </returns>
 public virtual bool Contains(AttributeDeclaration value)
 {
     return this.List.Contains(value);
 }
 /// <summary>
 /// Adds an instance of type AttributeDeclaration to the end of this AttributeDeclarationCollection.
 /// </summary>
 /// <param name="value">
 /// The AttributeDeclaration to be added to the end of this AttributeDeclarationCollection.
 /// </param>
 public virtual AttributeDeclaration Add(ITypeDeclaration type)
 {
     AttributeDeclaration attr = new AttributeDeclaration(type);
     this.List.Add(attr);
     return attr;
 }
 /// <summary>
 /// Removes the first occurrence of a specific AttributeDeclaration from this AttributeDeclarationCollection.
 /// </summary>
 /// <param name="value">
 /// The AttributeDeclaration value to remove from this AttributeDeclarationCollection.
 /// </param>
 public virtual void Remove(AttributeDeclaration value)
 {
     this.List.Remove(value);
 }
 /// <summary>
 /// Inserts an element into the AttributeDeclarationCollection at the specified index
 /// </summary>
 /// <param name="index">
 /// The index at which the AttributeDeclaration is to be inserted.
 /// </param>
 /// <param name="value">
 /// The AttributeDeclaration to insert.
 /// </param>
 public virtual void Insert(int index, AttributeDeclaration value)
 {
     this.List.Insert(index, value);
 }
Esempio n. 6
0
 /// <summary>
 /// Removes the first occurrence of a specific AttributeDeclaration from this AttributeDeclarationCollection.
 /// </summary>
 /// <param name="value">
 /// The AttributeDeclaration value to remove from this AttributeDeclarationCollection.
 /// </param>
 public virtual void Remove(AttributeDeclaration value)
 {
     this.List.Remove(value);
 }
Esempio n. 7
0
 /// <summary>
 /// Inserts an element into the AttributeDeclarationCollection at the specified index
 /// </summary>
 /// <param name="index">
 /// The index at which the AttributeDeclaration is to be inserted.
 /// </param>
 /// <param name="value">
 /// The AttributeDeclaration to insert.
 /// </param>
 public virtual void Insert(int index, AttributeDeclaration value)
 {
     this.List.Insert(index, value);
 }
Esempio n. 8
0
 /// <summary>
 /// Determines whether a specfic AttributeDeclaration value is in this AttributeDeclarationCollection.
 /// </summary>
 /// <param name="value">
 /// The AttributeDeclaration value to locate in this AttributeDeclarationCollection.
 /// </param>
 /// <returns>
 /// true if value is found in this AttributeDeclarationCollection;
 /// false otherwise.
 /// </returns>
 public virtual bool Contains(AttributeDeclaration value)
 {
     return(this.List.Contains(value));
 }