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

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

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

--- trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 11:23:09	76
+++ trunk/libxmltv/Core/XMLTVSource.cs	2013/03/09 11:28:41	77
@@ -48,13 +48,13 @@
             var fields = instance_type.GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance);
             foreach (var field in fields)
             {
-                if (field.FieldType == typeof(List<IXMLTVSource>))
+                if (field.FieldType == typeof(IXMLTVSource))
                 {
                     found_field = true;
                     try
                     {
                         xmltv_logger.Verbose.Debug.WriteLine("Updating instance with source information: {0}", this.ToString());
-                        field.SetValue(this.GetInstance(), new List<IXMLTVSource>() { this });                        
+                        field.SetValue(this.GetInstance(), this);                        
                         break;
                     }
                     catch (Exception ex)

 

  ViewVC Help
Powered by ViewVC 1.1.22