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

revision 50 by william, Fri Mar 8 06:15:44 2013 UTC revision 51 by william, Fri Mar 8 06:39:56 2013 UTC
# Line 62  namespace libxmltv.Core Line 62  namespace libxmltv.Core
62    
63          private CLASS instance;          private CLASS instance;
64          #region IXMLTV<T> members          #region IXMLTV<T> members
65          private IXMLTVSerializer<INTERFACE> CreateSerializer() { return new XMLTVSerializer<INTERFACE>(instance); }          public IXMLTVSerializer<CLASS> CreateSerializer()
66            {
67                // we must serialize on the CLASS type, using the INTERFACE type is syntatically incorrect
68                ISerializer<CLASS> class_serializer = (instance as ISerializer<CLASS>);
69                if (class_serializer != null)
70                {
71                    return class_serializer.Serializer;
72                }
73                else
74                {
75                    return new XMLTVSerializer<CLASS>(instance);
76                }
77            }
78          public INTERFACE GetInstance()          public INTERFACE GetInstance()
79          {          {
80              return (INTERFACE)instance;              return (INTERFACE)instance;

Legend:
Removed from v.50  
changed lines
  Added in v.51

  ViewVC Help
Powered by ViewVC 1.1.22