zoukankan      html  css  js  c++  java
  • 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);
    这就是
  • 相关阅读:
    IIS 添加二级应用程序
    VS中发布并调试IIS程序
    未启用当前数据库的 SQL Server Service Broker,因此查询通知不受支持。如果希望使用通知,请为此数据库启用 Service Broker
    Flash基础开发习惯指要
    2012云计算扫盲
    flash问题集锦(新手必看)
    Flash常用ActionScript控制语句基本用法祥解
    通过offset值的设置使html元素对齐
    不用float也可以让div横向显示
    QQ空间里写的开发心得
  • 原文地址:https://www.cnblogs.com/zhangrCsharp/p/7695163.html
Copyright © 2011-2022 走看看