/[xmltv_parser]/branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs
ViewVC logotype

Diff of /branches/linux/xmltv_parser/libxmltv/Core/XMLTVProgram.cs

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

--- trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 17:43:20	119
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/10 18:19:12	120
@@ -56,9 +56,9 @@
         #region Property Dictionary Support
         private IPropertyDictionary _MetaData;
         public IPropertyDictionary MetaData { get { return _MetaData; } private set { _MetaData = value; } }
-        public List<IExtraMetaData> GetExtraMetaData()
+        public ExtraList GetExtraMetaData()
         {
-            return (List<IExtraMetaData>)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
+            return (ExtraList)this.MetaData[XMLTVConstants.Programs.ProgramExtraMetaData];
         }
         #endregion
 
@@ -84,13 +84,13 @@
             var fields = instance_type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
             foreach (var field in fields)
             {
-                if (field.FieldType == typeof(List<IXMLTVProgram>))
+                if (field.FieldType == typeof(ProgramList))
                 {
                     found_field = true;
                     try
                     {
-                        
-                        var list = (List<IXMLTVProgram>)field.GetValue(this.GetInstance());
+
+                        var list = (ProgramList)field.GetValue(this.GetInstance());
                         MetaData["Id"] = list.Count + 1;
                         list.Add(this);
                         xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString());

 

  ViewVC Help
Powered by ViewVC 1.1.22