/[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

--- trunk/libxmltv/Core/PropertyDictionary.cs	2013/03/10 11:35:26	105
+++ trunk/libxmltv/Core/PropertyDictionary.cs	2013/03/10 12:25:54	106
@@ -38,6 +38,11 @@
         public bool RemoveProperty(T item) { return items.Remove(item); }
         public IEnumerator<T> GetEnumerator() { return items.GetEnumerator(); }
         System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return items.GetEnumerator(); }
+
+        public override string ToString()
+        {
+            return string.Format("Property Count: {0}", PropertyCount);
+        }
     }
     public class PropertyDictionary : PropertyDictionary<string, object>, IPropertyDictionary
     {
@@ -58,6 +63,10 @@
             public int next;
             public TKey name;
             public TValue value;
+            public override string ToString()
+            {
+                return new PropertyValuePair<TKey, TValue>(name, value).ToString();
+            }
         }
         private Entry[] entries
         {
@@ -153,6 +162,10 @@
         IEnumerator<IPropertyValuePair<TKey, TValue>> IEnumerable<IPropertyValuePair<TKey, TValue>>.GetEnumerator() { return new PropertyDictionaryEnumerator(this, 2); }
         System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return properties.GetEnumerator(); }
 
+        public override string ToString()
+        {
+            return string.Format("Property Count: {0}", PropertyCount);
+        }
         #region enumerator support
         public class PropertyDictionaryEnumerator : IEnumerator<IPropertyValuePair<TKey, TValue>>, IDisposable
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22