/[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/10 19:22:06	122
+++ trunk/libxmltv/Core/XMLTVSource.cs	2013/03/13 13:45:05	128
@@ -11,7 +11,7 @@
 namespace libxmltv.Core
 {
     [Serializable]
-    internal class XMLTVSource : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVSource, IDisposable//, ICloneable
+    internal class XMLTVSource : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVSource, IDisposable //,IDataConverter<IXMLTVSource>, ICloneable
     {
         //static private List<string> known_columns;
         //static XMLTVSource()
@@ -34,10 +34,22 @@
         //    this.GeneratorName = generatorname;
         //    this.GeneratorUrl = generatorurl;
         //}
-
-
-        public object CreateBindableDataSource()
+        //public object ConvertObjectData(object source) { return this.ConvertData(source); }
+        //public IXMLTVSource ConvertData(object source)
+        //{
+        //    if (source.GetType() != typeof(XMLTVSource)) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", source.GetType().Name, typeof(XMLTVSource).Name)); }
+        //    //if (type != typeof(IXMLTVSource)) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", type.Name, typeof(IXMLTVSource).Name)); }
+        //    IXMLTVSource t = (IXMLTVSource)source;            
+        //    return t;
+        //}
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <param name="type"></param>
+        /// <returns></returns>
+        public object CreateBindableDataSource(out Type type)
         {
+            type = typeof(IXMLTVSource);
             object bindable = new object();
 
             //List<PropertyValuePair> list = new List<PropertyValuePair>();

 

  ViewVC Help
Powered by ViewVC 1.1.22