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 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 Keys{get;}
ICollection 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 other);
void IntersectWith(IEnumerable other);
void ExceptWith(IEnumerable other);
void SymmetricExceptWith(IEnumerable other);
bool IsSubsetOf(IEnumerable other);
bool IsSupersetOf(IEnumerable other);
bool IsProperSupersetOf(IEnumerable other);
bool IsProperSubsetOf(IEnumerable other);
bool Overlaps(IEnumerable other);
bool SetEquals(IEnumerable other);

posted @ 2017-10-19 21:13  给我一个理由  阅读(214)  评论(0)    收藏  举报