dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Pnet-developers] [bug #4195] XmlTextReader uses XmlStreamReader ins


From: Thong \(Tum\) Nguyen
Subject: RE: [Pnet-developers] [bug #4195] XmlTextReader uses XmlStreamReader instead of StreamReader
Date: Sat, 5 Jul 2003 13:07:12 +1200

Ahh ok, thanks for the explanation.  Is it possible to reduce the code
duplication by inheriting from StreamReader without breaking the spec?

Thanks,

^Tum


> -----Original Message-----
> From: Rhys Weatherley [mailto:address@hidden
> Sent: Saturday, 5 July 2003 12:41 p.m.
> To: address@hidden; address@hidden
> Subject: Re: [Pnet-developers] [bug #4195] XmlTextReader uses
> XmlStreamReader instead of StreamReader
> 
> On Saturday 05 July 2003 10:30 am, address@hidden wrote:
> 
> > Original Submission:  XmlTextReader should be using StreamReader and
not
> > XmlStreamReader.  XmlStreamReader appears to be identical to
StreamReader.
> > Keeping fixes synchronised between the two would be painful :-.
> 
> XmlStreamReader was deliberately forked from StreamReader because the
> handling
> of encodings, particularly UCS-4, is different from the base class and
the
> base class cannot be modified to incorporate the differences without
breaking
> the specification.  The manner in which encodings are detected is also
> different.  Yes, it is painful, but it is necessary.  MS also uses a
separate
> class.
> 
> Cheers,
> 
> Rhys.
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]