diff options
Diffstat (limited to 'mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs')
-rw-r--r-- | mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs | 99 |
1 files changed, 0 insertions, 99 deletions
diff --git a/mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs b/mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs deleted file mode 100644 index 9c1c2a1a3b3..00000000000 --- a/mcs/class/System/System.CodeDom/CodeTypeDeclarationCollection.cs +++ /dev/null @@ -1,99 +0,0 @@ -// -// System.CodeDom CodeTypeDeclarationCollection Class implementation -// -// Author: -// Daniel Stodden (stodden@in.tum.de) -// -// (C) 2002 Ximian, Inc. -// - -using System.Runtime.InteropServices; -using System.Collections; - -namespace System.CodeDom -{ - [Serializable] - [ClassInterface(ClassInterfaceType.AutoDispatch)] - [ComVisible(true)] - public class CodeTypeDeclarationCollection - : CollectionBase - { - // - // Constructors - // - public CodeTypeDeclarationCollection() - { - } - - public CodeTypeDeclarationCollection( CodeTypeDeclaration[] value ) - { - AddRange( value ); - } - - public CodeTypeDeclarationCollection( CodeTypeDeclarationCollection value ) - { - AddRange( value ); - } - - // - // Properties - // - public CodeTypeDeclaration this[int index] - { - get { - return (CodeTypeDeclaration)List[index]; - } - set { - List[index] = value; - } - } - - // - // Methods - // - public int Add (CodeTypeDeclaration value) - { - return List.Add (value); - } - - public void AddRange (CodeTypeDeclaration [] value) - { - foreach (CodeTypeDeclaration ca in value) - Add( ca ); - } - - public void AddRange (CodeTypeDeclarationCollection value) - { - foreach (CodeTypeDeclaration ca in value) - Add( ca ); - } - - public bool Contains( CodeTypeDeclaration value ) - { - return List.Contains( value ); - } - - public void CopyTo( CodeTypeDeclaration[] array, int index ) - { - List.CopyTo( array, index ); - } - - public int IndexOf( CodeTypeDeclaration value ) - { - return List.IndexOf( value ); - } - - public void Insert( int index, CodeTypeDeclaration value ) - { - List.Insert( index, value ); - } - - public void Remove( CodeTypeDeclaration value ) - { - int index = IndexOf( value ); - if ( index < 0 ) - throw( new ArgumentException( "The specified object is not found in the collection" ) ); - RemoveAt( index ); - } - } -} |