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

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

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

--- trunk/libxmltv/Core/XMLTV.cs	2013/03/08 07:01:37	52
+++ trunk/libxmltv/Core/XMLTV.cs	2013/03/08 07:05:53	53
@@ -37,29 +37,8 @@
     {
         public XMLTV(params object[] args)
         {
-            ////instance = new CLASS(xml_file, t); 
-            //instance = null;
-
-            //Type type = typeof(CLASS);
-            //var ctors = type.GetConstructors();
-            //foreach (var ctor in ctors)
-            //{
-            //    var ctor_params = ctor.GetParameters();
-            //    if (ctor_params.Count() == 2)
-            //    {
-            //        if (ctor_params[0].ParameterType == typeof(string))
-            //        {
-            //            if (ctor_params[1].ParameterType == typeof(EventHandler<CancelEventArgs>))
-            //            {
-            //                object o = ctor.Invoke(new object[] { xml_file, t });
-            //                instance = (CLASS)Convert.ChangeType(o, typeof(CLASS));
-            //                break;
-            //            }
-            //        }
-            //    }
-            //    else { continue; }
-            //}
-            BindingFlags flags = BindingFlags.NonPublic | BindingFlags.Instance;
+            
+            BindingFlags flags = BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance;
             CultureInfo culture = CultureInfo.CurrentCulture;
             try
             {

 

  ViewVC Help
Powered by ViewVC 1.1.22