ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/xmltv_parser/trunk/libxmltv/Core/PropertyDictionary.cs
(Generate patch)

Comparing trunk/libxmltv/Core/PropertyDictionary.cs (file contents):
Revision 92 by william, Sun Mar 10 08:21:30 2013 UTC vs.
Revision 93 by william, Sun Mar 10 08:44:53 2013 UTC

--- 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 @@ namespace libxmltv.Core
     }
     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 @@ namespace libxmltv.Core
             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 @@ namespace libxmltv.Core
                 this.index = this.dictionary.Count() + 1;
                 this.current = new PropertyValuePair<TKey, TValue>();
                 return false;
-
-
             }
-
             public void Reset()
             {
                 if (this.version != this.dictionary.version)