2003-11-06 Martin Baulig <martin@ximian.com>
[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 using System;
12 using System.Runtime.InteropServices;
13
14 namespace System.Collections.Generic
15 {
16         [CLSCompliant(false)]
17         [ComVisible(false)]
18         public interface IList<T> : ICollection<T>
19         {
20                 int Add (T item);
21
22                 void Clear ();
23
24                 bool Contains (T item);
25
26                 int IndexOf (T item);
27
28                 void Insert (int index, T item);
29
30                 void Remove (T item);
31
32                 void RemoveAt (int index);
33
34                 bool IsFixedSize {
35                         get;
36                 }
37
38                 bool IsReadOnly {
39                         get;
40                 }
41
42                 T this [int switchName] {
43                         get; set;
44                 }
45         }
46 }