zoukankan      html  css  js  c++  java
  • .Net 集合类

    .Net 类库里没有集合类的吗?

    自己写了个,大家提提意见~~

    using System;
    using System.Collections;

    namespace CN.Teddy.Util.Collections
    {
        
    /// <summary>
        
    /// ISimpleSet 的摘要说明。
        
    /// </summary>

        public interface ISimpleSet : ICollection, ICloneable
        
    {
            
    bool Contains(object obj);

            
    bool BelongTo(SimpleSet set2);

            
    void Add(object obj);

            
    void Remove(object obj);

            
    void Clear();

            SimpleSet Intersect(SimpleSet set2);

            SimpleSet Union(SimpleSet set2);

            SimpleSet Minus(SimpleSet set2);
        }

    }


    using System;
    using System.Collections;

    namespace CN.Teddy.Util.Collections
    {
        
    /// <summary>
        
    /// SimpleSet 的摘要说明。
        
    /// </summary>

        public class SimpleSet : ISimpleSet
        
    {
            
    Private members

            
    Public Members

            
    Constructors

            
    ICollection 成员

            
    IEnumerable 成员

            
    ISimpleSet 成员

            
    ICloneable 成员
        }

    }


    using System;

    namespace CN.Teddy.Util.Collections
    {
        
    /// <summary>
        
    /// IEqualHandler 的摘要说明。
        
    /// </summary>

        public interface IEqualHandler
        
    {
            
    bool Equal(object obj1, object obj2);
        }

    }


    using System;

    namespace CN.Teddy.Util.Collections
    {
        
    /// <summary>
        
    /// EqualHandler 的摘要说明。
        
    /// </summary>

        public class EqualHandler : IEqualHandler
        
    {
            
    IEqualHandler 成员
        }

    }

  • 相关阅读:
    Epic OA Day2 2014/11/7
    LeetCode day15 2014/11/3
    LeetCode day14 2014/11/2
    Bluetooth BQB PTS(Profile Tuning Suite)
    音频编码:ADPCM
    软件推荐 : USB Over Network
    IOS的BLE蓝牙连接参数限制
    python pyinstaller
    QCC3003x BLE 设置私有地址
    QCC300x UART
  • 原文地址:https://www.cnblogs.com/teddyma/p/102357.html
Copyright © 2011-2022 走看看