Parent Directory
|
Revision Log
|
Patch
--- trunk/libxmltv/Core/PropertyDictionary.cs 2013/03/10 08:21:30 92 +++ trunk/libxmltv/Core/PropertyDictionary.cs 2013/03/10 08:44:53 93 @@ -28,7 +28,10 @@ } public class PropertyDictionary : PropertyDictionary<string, object> { - public PropertyDictionary() : base() { } + public PropertyDictionary() : base() + { + ThrowHelper.ThrowNotSupportedException(ExceptionResource.NotSupported_ReadOnlyCollection); + } public PropertyDictionary(IPropertyDictionary dictionary) : base(dictionary) { } public PropertyDictionary(IEqualityComparer<string> comparer) : base(comparer) { } public PropertyDictionary(int capacity) :base(capacity) { } @@ -142,17 +145,19 @@ public PropertyDictionaryEnumerator(PropertyDictionary<TKey, TValue> dictionary, int getEnumeratorRetType) { this.dictionary = dictionary; + this.version = dictionary.version; + this.index = 0; this.getEnumeratorRetType = getEnumeratorRetType; + this.current = new PropertyValuePair<TKey, TValue>(); } public PropertyValuePair<TKey, TValue> Current { - get { throw new NotImplementedException(); } + get { return this.current; } } public void Dispose() { - throw new NotImplementedException(); } object IEnumerator.Current @@ -190,10 +195,7 @@ this.index = this.dictionary.Count() + 1; this.current = new PropertyValuePair<TKey, TValue>(); return false; - - } - public void Reset() { if (this.version != this.dictionary.version)
ViewVC Help | |
Powered by ViewVC 1.1.22 |