/[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

revision 122 by william, Sun Mar 10 19:22:06 2013 UTC revision 128 by william, Wed Mar 13 13:45:05 2013 UTC
# Line 11  using System.IO; Line 11  using System.IO;
11  namespace libxmltv.Core  namespace libxmltv.Core
12  {  {
13      [Serializable]      [Serializable]
14      internal class XMLTVSource : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVSource, IDisposable//, ICloneable      internal class XMLTVSource : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVSource, IDisposable //,IDataConverter<IXMLTVSource>, ICloneable
15      {      {
16          //static private List<string> known_columns;          //static private List<string> known_columns;
17          //static XMLTVSource()          //static XMLTVSource()
# Line 34  namespace libxmltv.Core Line 34  namespace libxmltv.Core
34          //    this.GeneratorName = generatorname;          //    this.GeneratorName = generatorname;
35          //    this.GeneratorUrl = generatorurl;          //    this.GeneratorUrl = generatorurl;
36          //}          //}
37            //public object ConvertObjectData(object source) { return this.ConvertData(source); }
38            //public IXMLTVSource ConvertData(object source)
39          public object CreateBindableDataSource()          //{
40            //    if (source.GetType() != typeof(XMLTVSource)) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", source.GetType().Name, typeof(XMLTVSource).Name)); }
41            //    //if (type != typeof(IXMLTVSource)) { throw new InvalidCastException(string.Format("Cannot cast: '{0}' to '{1}'", type.Name, typeof(IXMLTVSource).Name)); }
42            //    IXMLTVSource t = (IXMLTVSource)source;            
43            //    return t;
44            //}
45            /// <summary>
46            ///
47            /// </summary>
48            /// <param name="type"></param>
49            /// <returns></returns>
50            public object CreateBindableDataSource(out Type type)
51          {          {
52                type = typeof(IXMLTVSource);
53              object bindable = new object();              object bindable = new object();
54    
55              //List<PropertyValuePair> list = new List<PropertyValuePair>();              //List<PropertyValuePair> list = new List<PropertyValuePair>();

Legend:
Removed from v.122  
changed lines
  Added in v.128

  ViewVC Help
Powered by ViewVC 1.1.22