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

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

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

--- trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/10 10:18:06	99
+++ trunk/libxmltv/Core/XMLTVChannel.cs	2013/03/10 18:19:12	120
@@ -38,15 +38,14 @@
         private void InternalDictionaryAddKnownProperties()
         {
             MetaData = new PropertyList();
-            //MetaData.AddProperty("Id", string.Empty);
         }
         #region IXMLTVChannel members
         public string Id { get; private set; }
         //public int Number { get; private set; }
         //public string CallSign { get; private set; }
         //public string Name { get; private set; }
-        private PropertyList _MetaData;
-        public PropertyList MetaData { get { return _MetaData; } private set { _MetaData = value; } }
+        private IPropertyList _MetaData;
+        public IPropertyList MetaData { get { return _MetaData; } private set { _MetaData = value; } }
         #endregion
         public override string ToString()
         {
@@ -60,12 +59,12 @@
             var fields = instance_type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
             foreach (var field in fields)
             {
-                if (field.FieldType == typeof(List<IXMLTVChannel>))
+                if (field.FieldType == typeof(ChannelList))
                 {
                     found_field = true;
                     try
                     {
-                        var list = (List<IXMLTVChannel>)field.GetValue(this.GetInstance());
+                        var list = (ChannelList)field.GetValue(this.GetInstance());
                         list.Add(this);
                         xmltv_logger.Verbose.Debug.WriteLine("Updating instance with channel information: {0}", this.ToString());
                         field.SetValue(this.GetInstance(), list);

 

  ViewVC Help
Powered by ViewVC 1.1.22