mscorlib(4.0.0.0) API with additions
CodeAttributeDeclarationCollection.cs
1 using System.Collections;
3 
4 namespace System.CodeDom
5 {
8  [ClassInterface(ClassInterfaceType.AutoDispatch)]
9  [ComVisible(true)]
11  {
16  public CodeAttributeDeclaration this[int index]
17  {
18  get
19  {
20  return (CodeAttributeDeclaration)base.List[index];
21  }
22  set
23  {
24  base.List[index] = value;
25  }
26  }
27 
30  {
31  }
32 
38  {
39  AddRange(value);
40  }
41 
46  {
47  AddRange(value);
48  }
49 
53  public int Add(CodeAttributeDeclaration value)
54  {
55  return base.List.Add(value);
56  }
57 
62  public void AddRange(CodeAttributeDeclaration[] value)
63  {
64  if (value == null)
65  {
66  throw new ArgumentNullException("value");
67  }
68  for (int i = 0; i < value.Length; i++)
69  {
70  Add(value[i]);
71  }
72  }
73 
79  {
80  if (value == null)
81  {
82  throw new ArgumentNullException("value");
83  }
84  int count = value.Count;
85  for (int i = 0; i < count; i++)
86  {
87  Add(value[i]);
88  }
89  }
90 
96  {
97  return base.List.Contains(value);
98  }
99 
106  public void CopyTo(CodeAttributeDeclaration[] array, int index)
107  {
108  base.List.CopyTo(array, index);
109  }
110 
115  {
116  return base.List.IndexOf(value);
117  }
118 
122  public void Insert(int index, CodeAttributeDeclaration value)
123  {
124  base.List.Insert(index, value);
125  }
126 
130  public void Remove(CodeAttributeDeclaration value)
131  {
132  base.List.Remove(value);
133  }
134  }
135 }
int Add(CodeAttributeDeclaration value)
Adds a T:System.CodeDom.CodeAttributeDeclaration object with the specified value to the collection.
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
Provides the abstract base class for a strongly typed collection.
void Remove(CodeAttributeDeclaration value)
Removes the specified T:System.CodeDom.CodeAttributeDeclaration object from the collection.
Definition: __Canon.cs:3
bool Contains(CodeAttributeDeclaration value)
Gets or sets a value that indicates whether the collection contains the specified T:System....
void AddRange(CodeAttributeDeclarationCollection value)
Copies the contents of another T:System.CodeDom.CodeAttributeDeclarationCollection object to the end ...
CodeAttributeDeclarationCollection()
Initializes a new instance of the T:System.CodeDom.CodeAttributeDeclarationCollection class.
void CopyTo(CodeAttributeDeclaration[] array, int index)
Copies the collection objects to a one-dimensional T:System.Array instance beginning at the specified...
CodeAttributeDeclarationCollection(CodeAttributeDeclarationCollection value)
Initializes a new instance of the T:System.CodeDom.CodeAttributeDeclarationCollection class containin...
Represents an attribute declaration.
void AddRange(CodeAttributeDeclaration[] value)
Copies the elements of the specified T:System.CodeDom.CodeAttributeDeclaration array to the end of th...
int IndexOf(CodeAttributeDeclaration value)
Gets the index of the specified T:System.CodeDom.CodeAttributeDeclaration object in the collection,...
CodeAttributeDeclarationCollection(CodeAttributeDeclaration[] value)
Initializes a new instance of the T:System.CodeDom.CodeAttributeDeclarationCollection class containin...
Specifies that the class can be serialized.
void Insert(int index, CodeAttributeDeclaration value)
Inserts the specified T:System.CodeDom.CodeAttributeDeclaration object into the collection at the spe...
Represents a collection of T:System.CodeDom.CodeAttributeDeclaration objects.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.