/// Initializes a new instance of <see cref='System.CodeDom.CodeNamespaceCollection'/>.
/// </para>
/// </devdoc>
publicCodeNamespaceCollection(){
}
/// <devdoc>
/// <para>
/// Initializes a new instance of <see cref='System.CodeDom.CodeNamespaceCollection'/> based on another <see cref='System.CodeDom.CodeNamespaceCollection'/>.
/// Initializes a new instance of <see cref='System.CodeDom.CodeNamespaceCollection'/> containing any array of <see cref='System.CodeDom.CodeNamespace'/> objects.
/// <para>Copies the elements of an array to the end of the <see cref='System.CodeDom.CodeNamespaceCollection'/>.</para>
/// </devdoc>
publicvoidAddRange(CodeNamespace[]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.CodeNamespaceCollection'/> to the end of the collection.
/// </para>
/// </devdoc>
publicvoidAddRange(CodeNamespaceCollectionvalue){
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.CodeNamespaceCollection'/> contains the specified <see cref='System.CodeDom.CodeNamespace'/>.</para>
/// </devdoc>
publicboolContains(CodeNamespacevalue){
returnList.Contains(value);
}
/// <devdoc>
/// <para>Copies the <see cref='System.CodeDom.CodeNamespaceCollection'/> values to a one-dimensional <see cref='System.Array'/> instance at the
/// specified index.</para>
/// </devdoc>
publicvoidCopyTo(CodeNamespace[]array,intindex){
List.CopyTo(array,index);
}
/// <devdoc>
/// <para>Returns the index of a <see cref='System.CodeDom.CodeNamespace'/> in
/// the <see cref='System.CodeDom.CodeNamespaceCollection'/> .</para>
/// </devdoc>
publicintIndexOf(CodeNamespacevalue){
returnList.IndexOf(value);
}
/// <devdoc>
/// <para>Inserts a <see cref='System.CodeDom.CodeNamespace'/> into the <see cref='System.CodeDom.CodeNamespaceCollection'/> at the specified index.</para>
/// </devdoc>
publicvoidInsert(intindex,CodeNamespacevalue){
List.Insert(index,value);
}
/// <devdoc>
/// <para> Removes a specific <see cref='System.CodeDom.CodeNamespace'/> from the