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