mscorlib(4.0.0.0) API with additions
CodeNamespaceCollection.cs
1 using System.Collections;
3 
4 namespace System.CodeDom
5 {
8  [ClassInterface(ClassInterfaceType.AutoDispatch)]
9  [ComVisible(true)]
11  {
16  public CodeNamespace this[int index]
17  {
18  get
19  {
20  return (CodeNamespace)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(CodeNamespace value)
54  {
55  return base.List.Add(value);
56  }
57 
62  public void AddRange(CodeNamespace[] 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 
78  public void AddRange(CodeNamespaceCollection value)
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(CodeNamespace value)
96  {
97  return base.List.Contains(value);
98  }
99 
106  public void CopyTo(CodeNamespace[] array, int index)
107  {
108  base.List.CopyTo(array, index);
109  }
110 
114  public int IndexOf(CodeNamespace value)
115  {
116  return base.List.IndexOf(value);
117  }
118 
122  public void Insert(int index, CodeNamespace value)
123  {
124  base.List.Insert(index, value);
125  }
126 
130  public void Remove(CodeNamespace value)
131  {
132  base.List.Remove(value);
133  }
134  }
135 }
bool Contains(CodeNamespace value)
Gets a value that indicates whether the collection contains the specified T:System....
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
int Add(CodeNamespace value)
Adds the specified T:System.CodeDom.CodeNamespace object to the collection.
Provides the abstract base class for a strongly typed collection.
void AddRange(CodeNamespace[] value)
Copies the elements of the specified T:System.CodeDom.CodeNamespace array to the end of the collectio...
CodeNamespaceCollection()
Initializes a new instance of the T:System.CodeDom.CodeNamespaceCollection class.
Definition: __Canon.cs:3
int IndexOf(CodeNamespace value)
Gets the index of the specified T:System.CodeDom.CodeNamespace object in the T:System....
CodeNamespaceCollection(CodeNamespace[] value)
Initializes a new instance of the T:System.CodeDom.CodeNamespaceCollection class that contains the sp...
void Remove(CodeNamespace value)
Removes the specified T:System.CodeDom.CodeNamespace object from the collection.
void AddRange(CodeNamespaceCollection value)
Adds the contents of the specified T:System.CodeDom.CodeNamespaceCollection object to the end of the ...
CodeNamespaceCollection(CodeNamespaceCollection value)
Initializes a new instance of the T:System.CodeDom.CodeNamespaceCollection class that contains the el...
void CopyTo(CodeNamespace[] array, int index)
Copies the collection objects to a one-dimensional T:System.Array instance, starting at the specified...
Represents a namespace declaration.
Represents a collection of T:System.CodeDom.CodeNamespace objects.
Specifies that the class can be serialized.
ClassInterfaceType
Identifies the type of class interface that is generated for a class.
void Insert(int index, CodeNamespace value)
Inserts the specified T:System.CodeDom.CodeNamespace object into the collection at the specified inde...