public interface IEnumerable
{
IEnumerator GetEnumerator();
}
public interface IEnumerable<out T> : IEnumerable
{
new IEnumerator<T> GetEnumerator();
}
public interface ICollection : IEnumerable
{
int Count
{
get;
}
object SyncRoot
{
get;
}
bool IsSynchronized
{
get;
}
void CopyTo(Array array, int index);
}
public interface ICollection<T> : IEnumerable<T>, IEnumerable
{
int Count
{
get;
}
bool IsReadOnly
{
get;
}
void Add(T item);
void Clear();
bool Contains(T item);
void CopyTo(T[] array, int arrayIndex);
bool Remove(T item);
}
public interface IList<T> : ICollection<T>, IEnumerable<T>, IEnumerable
{
T this[int index]
{
get;
set;
}
int IndexOf(T item);
void Insert(int index, T item);
void RemoveAt(int index);
}