/[xmltv_parser]/trunk/libxmltv/Interfaces/Interfaces.cs
ViewVC logotype

Diff of /trunk/libxmltv/Interfaces/Interfaces.cs

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

--- trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/10 12:58:40	107
+++ trunk/libxmltv/Interfaces/Interfaces.cs	2013/03/10 14:28:57	110
@@ -43,10 +43,12 @@
     {
         PropertyDictionary MetaData { get; }
     }
-
-    public interface IExtraMetaData : IExtraMetaData<XElement> { }
-    public interface IExtraMetaData<TValue> : IExtraMetaData<string, TValue> { }
-    public interface IExtraMetaData<TKey, TValue> : IPropertyValuePair<TKey, TValue> { }
+    
+    public interface IExtraMetaData : IExtraMetaData<string, string> { }
+    public interface IExtraMetaData<TKey, TValue> : IPropertyValuePair<TKey, TValue> 
+    {
+        XElement AsXElement();
+    }
     public interface IXMLTVProgramCollection : IXMLTVDictionaryCollection<string, IXMLTVProgram> { }
     public interface IXMLTVChannelCollection : IXMLTVDictionaryCollection<string, IXMLTVChannel> { }
     public interface IXMLTVDictionaryCollection<TKey, TValue> { Dictionary<TKey, TValue> Collection { get; } }
@@ -155,11 +157,13 @@
         TValue Value { get; }
         string ToString();
     }
+    [Serializable]
     internal class PropertyValuePair : PropertyValuePair<string, object>, IPropertyValuePair
     {
         public PropertyValuePair() :base() { }
         public PropertyValuePair(string name, object value) : base(name,value) { }
     }
+    [Serializable]
     internal class PropertyValuePair<TKey, TValue> : IPropertyValuePair<TKey,TValue>
     {
         #region KeyValuePair support

 

  ViewVC Help
Powered by ViewVC 1.1.22