0.1接口
我觉得我在没有调试.net 源代码之前,我都算不上一个.net 程序员
IDisposable
void Dispose();
IEnumerator:IDisposable
bool MoveNext();
void Reset();
object Current{get;}
IEnumerator:IEumerator
new Current{get;}
IEnumerable
IEnumerator GetEnumerator();
IEumerable:IEumerable
new IEumerator<T> GetEnumerator();
ICollection:IEumerable
void CopyTo(Array array,int index);
int Count{get;}
Object SyncRoot{get;}
bool IsSynchronized{get;}
ICollection:IEumerable
// base intreface for all collections,defining enumerator,size,and synchronization methods
int Count{get;}
bool IsReadOnly{get}
void Add(T item);
void Clear();
bool Contains(T item);
// copyto copies a collection into an array,starting at a paricular index into the array
void CopyTo(T[] array,int arrayIndex);
bool Remove(T item);
IList:ICollection
Object this[int index]{get;set;}
int Add(Object value);
bool Contains(Object value);
void Clear();
bool IsReadOnly{get;}
bool IsFixedSize{get;}
int IndexOf(Object value);
void Insert(int index,Object vlaue);
void Remove(Object value);
void RemoveAt(int index);
IList:IColleciton
//提供索引访问
T this[int index]{get;set;}
int IndexOf(T item);
//inserts value into the list at postion index
void Insert(int index,T item);
void RemoveAt(int index);
IDictionary<TKey,TValue>
ICollection<KeyValuePair<TKey,TValue>>
IEnumerable<KeyValuePair<Tkey,TValue>>
TValue this[TKey key]{get;set;}
IColleciton<TKey> Keys{get;}
ICollection<TValue> Values{get;set;}
bool ContainsKey(TKey key);
void Add(TKey key,TValue value);
bool Remove(TKey key);
bool TryGetValue(TKey key,out TValue value);
ISet:ICollection
system.dll
new bool Add(T item);
void UnionWith(IEnumerable<T> other);
void IntersectWith(IEnumerable<T> other);
void ExceptWith(IEnumerable<T> other);
void SymmetricExceptWith(IEnumerable<T> other);
bool IsSubsetOf(IEnumerable<T> other);
bool IsSupersetOf(IEnumerable<T> other);
bool IsProperSupersetOf(IEnumerable<T> other);
bool IsProperSubsetOf(IEnumerable<T> other);
bool Overlaps(IEnumerable<T> other);
bool SetEquals(IEnumerable<T> other);
这就是