From: Michael D. <mik...@us...> - 2004-08-14 20:59:44
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16511/Util Modified Files: SequencedHashMap.cs Log Message: Made public methods virtual to help Kevin with DNCache. http://jira.nhibernate.org:8080/browse/NH-97 Index: SequencedHashMap.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Util/SequencedHashMap.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** SequencedHashMap.cs 9 Aug 2004 03:18:49 -0000 1.6 --- SequencedHashMap.cs 14 Aug 2004 20:59:35 -0000 1.7 *************** *** 246,260 **** #region System.Collections.IDictionary Members ! public bool IsFixedSize { get { return false; } } ! public bool IsReadOnly { get { return false; } } ! public object this [ object o ] { get --- 246,260 ---- #region System.Collections.IDictionary Members ! public virtual bool IsFixedSize { get { return false; } } ! public virtual bool IsReadOnly { get { return false; } } ! public virtual object this [ object o ] { get *************** *** 285,304 **** } ! public ICollection Keys { get { return new KeyCollection(this); } } ! public ICollection Values { get { return new ValuesCollection(this); } } ! public void Add(object key, object value) { this[key] = value; } ! public void Clear() { _modCount++; --- 285,304 ---- } ! public virtual ICollection Keys { get { return new KeyCollection(this); } } ! public virtual ICollection Values { get { return new ValuesCollection(this); } } ! public virtual void Add(object key, object value) { this[key] = value; } ! public virtual void Clear() { _modCount++; *************** *** 310,324 **** } ! public bool Contains(object key) { return ContainsKey(key); } ! public IDictionaryEnumerator GetEnumerator() { return new OrderedEnumerator(this, ReturnType.ReturnEntry); } ! public void Remove(object key) { RemoveImpl(key); --- 310,324 ---- } ! public virtual bool Contains(object key) { return ContainsKey(key); } ! public virtual IDictionaryEnumerator GetEnumerator() { return new OrderedEnumerator(this, ReturnType.ReturnEntry); } ! public virtual void Remove(object key) { RemoveImpl(key); *************** *** 329,348 **** #region System.Collections.ICollection Members ! public int Count { get { return _entries.Count; } } ! public bool IsSynchronized { get { return false; } } ! public object SyncRoot { get { return this; } } ! public void CopyTo(Array array, int index) { foreach(DictionaryEntry de in this) --- 329,348 ---- #region System.Collections.ICollection Members ! public virtual int Count { get { return _entries.Count; } } ! public virtual bool IsSynchronized { get { return false; } } ! public virtual object SyncRoot { get { return this; } } ! public virtual void CopyTo(Array array, int index) { foreach(DictionaryEntry de in this) *************** *** 370,379 **** } ! public bool ContainsKey(object key) { return _entries.ContainsKey(key); } ! public bool ContainsValue(object value) { if (value == null) --- 370,379 ---- } ! public virtual bool ContainsKey(object key) { return _entries.ContainsKey(key); } ! public virtual bool ContainsValue(object value) { if (value == null) *************** *** 400,409 **** } ! public object FirstKey { get { return (First==null) ? null : First.Key; } } ! public object FirstValue { get { return (First==null) ? null : First.Value; } --- 400,409 ---- } ! public virtual object FirstKey { get { return (First==null) ? null : First.Key; } } ! public virtual object FirstValue { get { return (First==null) ? null : First.Value; } *************** *** 415,424 **** } ! public object LastKey { get { return (Last==null) ? null : Last.Key; } } ! public object LastValue { get { return (Last==null) ? null : Last.Value; } --- 415,424 ---- } ! public virtual object LastKey { get { return (Last==null) ? null : Last.Key; } } ! public virtual object LastValue { get { return (Last==null) ? null : Last.Value; } |