/[xmltv_parser]/trunk/libxmltv/Core/PropertyDictionary.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/PropertyDictionary.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 105 by william, Sun Mar 10 11:35:26 2013 UTC revision 106 by william, Sun Mar 10 12:25:54 2013 UTC
# Line 38  namespace libxmltv.Core Line 38  namespace libxmltv.Core
38          public bool RemoveProperty(T item) { return items.Remove(item); }          public bool RemoveProperty(T item) { return items.Remove(item); }
39          public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); }          public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); }
40          System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return items.GetEnumerator(); }          System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return items.GetEnumerator(); }
41    
42            public override string ToString()
43            {
44                return string.Format("Property Count: {0}", PropertyCount);
45            }
46      }      }
47      public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary      public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary
48      {      {
# Line 58  namespace libxmltv.Core Line 63  namespace libxmltv.Core
63              public int next;              public int next;
64              public TKey name;              public TKey name;
65              public TValue value;              public TValue value;
66                public override string ToString()
67                {
68                    return new PropertyValuePair<TKey, TValue>(name, value).ToString();
69                }
70          }          }
71          private Entry[] entries          private Entry[] entries
72          {          {
# Line 153  namespace libxmltv.Core Line 162  namespace libxmltv.Core
162          IEnumerator<IPropertyValuePair<TKey, TValue>> IEnumerable<IPropertyValuePair<TKey, TValue>>.GetEnumerator() { return new PropertyDictionaryEnumerator(this, 2); }          IEnumerator<IPropertyValuePair<TKey, TValue>> IEnumerable<IPropertyValuePair<TKey, TValue>>.GetEnumerator() { return new PropertyDictionaryEnumerator(this, 2); }
163          System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return properties.GetEnumerator(); }          System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return properties.GetEnumerator(); }
164    
165            public override string ToString()
166            {
167                return string.Format("Property Count: {0}", PropertyCount);
168            }
169          #region enumerator support          #region enumerator support
170          public class PropertyDictionaryEnumerator : IEnumerator<IPropertyValuePair<TKey, TValue>>, IDisposable          public class PropertyDictionaryEnumerator : IEnumerator<IPropertyValuePair<TKey, TValue>>, IDisposable
171          {          {

Legend:
Removed from v.105  
changed lines
  Added in v.106

  ViewVC Help
Powered by ViewVC 1.1.22