/[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/09 11:17:13	75
+++ trunk/libxmltv/Core/XMLTVProgram.cs	2013/03/09 11:23:09	76
@@ -50,14 +50,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(List<IXMLTVProgram>))
                 {
                     found_field = true;
                     try
                     {
                         xmltv_logger.Verbose.Debug.WriteLine("Updating instance with program information: {0}", this.ToString());
-                        //field.SetValue(this.GetInstance(), new List<IXMLTVChannel>() { this });
-
                         var list = (List<IXMLTVProgram>)field.GetValue(this.GetInstance());
                         this.Id = list.Count + 1;
                         list.Add(this);

 

  ViewVC Help
Powered by ViewVC 1.1.22