Re: [Saxdotnet-devel] Merging the IXmlReaderControl with IXmlReader
Brought to you by:
jeffrafter,
kwaclaw
From: Elliotte H. <el...@me...> - 2004-12-07 19:53:36
|
Jeff Rafter wrote: > Karl has proposed merging the IXmlReaderControl functionality into the > IXmlReader. This would add a "Suspend" and "Resume" function to the core > XmlReader. For implementations that do not support this behavior > (AElfred) calling these methods would generate a NotSupportedException. > Is it possible these could be no-ops instead of throwing exceptions? I find all this talk of methods that sometimes work and sometimes don't to be very confusing. For a class like XmlReader that is accessed directly by the programmer, rather than being passed in as an argument or used through a callback, wouldn't it be preferable to have subclasses with extra functionality? Why do we need to stuff every method into one interface? -- Elliotte Rusty Harold el...@me... XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim |