/// Initializes a new instance of <see cref='System.CodeDom.CodeStatementCollection'/>.
/// </para>
/// </devdoc>
publicCodeStatementCollection(){
}
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='System.CodeDom.CodeStatementCollection'/> based on another <see cref='System.CodeDom.CodeStatementCollection'/>.
/// Initializes a new instance of <see cref='System.CodeDom.CodeStatementCollection'/> containing any array of <see cref='System.CodeDom.CodeStatement'/> objects.
/// <para>Copies the elements of an array to the end of the <see cref='System.CodeDom.CodeStatementCollection'/>.</para>
/// </devdoc>
publicvoidAddRange(CodeStatement[]value){
if(value==null){
thrownewArgumentNullException("value");
}
for(inti=0;((i)<(value.Length));i=((i)+(1))){
this.Add(value[i]);
}
}
/// <devdoc>
/// <para>
/// Adds the contents of another <see cref='System.CodeDom.CodeStatementCollection'/> to the end of the collection.
/// </para>
/// </devdoc>
publicvoidAddRange(CodeStatementCollectionvalue){
if(value==null){
thrownewArgumentNullException("value");
}
intcurrentCount=value.Count;
for(inti=0;i<currentCount;i=((i)+(1))){
this.Add(value[i]);
}
}
/// <devdoc>
/// <para>Gets a value indicating whether the
/// <see cref='System.CodeDom.CodeStatementCollection'/> contains the specified <see cref='System.CodeDom.CodeStatement'/>.</para>
/// </devdoc>
publicboolContains(CodeStatementvalue){
returnList.Contains(value);
}
/// <devdoc>
/// <para>Copies the <see cref='System.CodeDom.CodeStatementCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
/// specified index.</para>
/// </devdoc>
publicvoidCopyTo(CodeStatement[]array,intindex){
List.CopyTo(array,index);
}
/// <devdoc>
/// <para>Returns the index of a <see cref='System.CodeDom.CodeStatement'/> in
/// the <see cref='System.CodeDom.CodeStatementCollection'/> .</para>
/// </devdoc>
publicintIndexOf(CodeStatementvalue){
returnList.IndexOf(value);
}
/// <devdoc>
/// <para>Inserts a <see cref='System.CodeDom.CodeStatement'/> into the <see cref='System.CodeDom.CodeStatementCollection'/> at the specified index.</para>
/// </devdoc>
publicvoidInsert(intindex,CodeStatementvalue){
List.Insert(index,value);
}
/// <devdoc>
/// <para> Removes a specific <see cref='System.CodeDom.CodeStatement'/> from the