All pastes #75223 Raw Edit

Something

public text v1 · immutable
#75223 ·published 2006-06-29 22:55 UTC
rendered paste body
        class callDictionary : DictionaryBase
        {
                public call this[string key]
                {
                        get { return ( call ) this.Dictionary[key] ; }
                        set { this.Dictionary[key] = value ; }
                }

                public void Add(string key, call CallList )
                {
                        this.Dictionary.Add(key, CallList);
                }

                public void Remove(string key)
                {
                        this.Dictionary.Remove(key);
                }

                public bool Contains(string key)
                {
                        return this.Dictionary.Contains(key);
                }

                //we will get to this later
                public ICollection Keys
                {
                        get {return this.Dictionary.Keys;}
                }

                public void Update(string key, call CallList)
                {
                        //TODO will this work?
                        this.Dictionary[key] = CallList;
                }
        }