Use `NET_2_0', not `GENERICS'.
[mono.git] / mcs / class / corlib / System.Collections.Generic / IList.cs
1 // -*- Mode: csharp; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
2 //
3 // System.Collections.Generic.IList
4 //
5 // Author:
6 //    Martin Baulig (martin@ximian.com)
7 //
8 // (C) 2003 Novell, Inc.
9 //
10
11 #if NET_2_0
12 using System;
13 using System.Runtime.InteropServices;
14
15 namespace System.Collections.Generic
16 {
17         [CLSCompliant(false)]
18         [ComVisible(false)]
19         public interface IList<T> : ICollection<T>
20         {
21                 int Add (T item);
22
23                 void Clear ();
24
25                 bool Contains (T item);
26
27                 int IndexOf (T item);
28
29                 void Insert (int index, T item);
30
31                 void Remove (T item);
32
33                 void RemoveAt (int index);
34
35                 bool IsFixedSize {
36                         get;
37                 }
38
39                 bool IsReadOnly {
40                         get;
41                 }
42
43                 T this [int switchName] {
44                         get; set;
45                 }
46         }
47 }
48 #endif