mscorlib(4.0.0.0) API with additions
CodeAttributeArgumentCollection.cs
1 using System.Collections;
3 
4 namespace System.CodeDom
5 {
8  [ClassInterface(ClassInterfaceType.AutoDispatch)]
9  [ComVisible(true)]
11  {
16  public CodeAttributeArgument this[int index]
17  {
18  get
19  {
20  return (CodeAttributeArgument)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(CodeAttributeArgument value)
54  {
55  return base.List.Add(value);
56  }
57 
62  public void AddRange(CodeAttributeArgument[] 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 
95  public bool Contains(CodeAttributeArgument value)
96  {
97  return base.List.Contains(value);
98  }
99 
106  public void CopyTo(CodeAttributeArgument[] array, int index)
107  {
108  base.List.CopyTo(array, index);
109  }
110 
114  public int IndexOf(CodeAttributeArgument value)
115  {
116  return base.List.IndexOf(value);
117  }
118 
122  public void Insert(int index, CodeAttributeArgument value)
123  {
124  base.List.Insert(index, value);
125  }
126 
130  public void Remove(CodeAttributeArgument value)
131  {
132  base.List.Remove(value);
133  }
134  }
135 }
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.
Represents a collection of T:System.CodeDom.CodeAttributeArgument objects.
void Insert(int index, CodeAttributeArgument value)
Inserts the specified T:System.CodeDom.CodeAttributeArgument object into the collection at the specif...
Definition: __Canon.cs:3
bool Contains(CodeAttributeArgument value)
Gets a value that indicates whether the collection contains the specified T:System....
Represents an argument used in a metadata attribute declaration.
void AddRange(CodeAttributeArgument[] value)
Copies the elements of the specified T:System.CodeDom.CodeAttributeArgument array to the end of the c...
void CopyTo(CodeAttributeArgument[] array, int index)
Copies the collection objects to a one-dimensional T:System.Array instance beginning at the specified...
CodeAttributeArgumentCollection()
Initializes a new instance of the T:System.CodeDom.CodeAttributeArgumentCollection class.
Specifies that the class can be serialized.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
CodeAttributeArgumentCollection(CodeAttributeArgument[] value)
Initializes a new instance of the T:System.CodeDom.CodeAttributeArgumentCollection class containing t...
int IndexOf(CodeAttributeArgument value)
Gets the index of the specified T:System.CodeDom.CodeAttributeArgument object in the collection,...
CodeAttributeArgumentCollection(CodeAttributeArgumentCollection value)
Initializes a new instance of the T:System.CodeDom.CodeAttributeArgumentCollection class containing t...
void Remove(CodeAttributeArgument value)
Removes the specified T:System.CodeDom.CodeAttributeArgument object from the collection.
void AddRange(CodeAttributeArgumentCollection value)
Copies the contents of another T:System.CodeDom.CodeAttributeArgumentCollection object to the end of ...
int Add(CodeAttributeArgument value)
Adds the specified T:System.CodeDom.CodeAttributeArgument object to the collection.