Click here to Skip to main content
15,909,030 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: bug in XmlReader ? Pin
S. Senthil Kumar6-Oct-06 6:00
S. Senthil Kumar6-Oct-06 6:00 
GeneralRe: bug in XmlReader ? Pin
Mike Dimmick7-Oct-06 1:20
Mike Dimmick7-Oct-06 1:20 
GeneralRe: bug in XmlReader ? Pin
S. Senthil Kumar7-Oct-06 1:36
S. Senthil Kumar7-Oct-06 1:36 
AnswerRe: bug in XmlReader ? Pin
Guffa6-Oct-06 4:32
Guffa6-Oct-06 4:32 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 4:49
professionalChris Losinger6-Oct-06 4:49 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 10:04
Guffa6-Oct-06 10:04 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 10:38
professionalChris Losinger6-Oct-06 10:38 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 11:17
Guffa6-Oct-06 11:17 
Chris Losinger wrote:

of course. but i also expect it to be closed.


Yes, if you close the reader, it will close the file.

Chris Losinger wrote:
if you open a file, and you don't expect (or even allow) the caller to do anything with the file you've opened, then there is absolutely no reason for you to keep the file open


How do you expect the reader to read from the file if it's not kept open?

Chris Losinger wrote:
- especially after you've gone out of scope.


Yes, there is no reason to keep the file open after that, but the problem is that it has no relevance at all from the object's point of view. The object has no way of telling that the reference to it has gone out of scope.


---
b { font-weight: normal; }

GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 11:31
professionalChris Losinger6-Oct-06 11:31 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 12:18
Guffa6-Oct-06 12:18 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 12:31
professionalChris Losinger6-Oct-06 12:31 
GeneralRe: bug in XmlReader ? Pin
Guffa6-Oct-06 13:17
Guffa6-Oct-06 13:17 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 16:42
professionalChris Losinger6-Oct-06 16:42 
GeneralRe: bug in XmlReader ? Pin
Guffa7-Oct-06 1:47
Guffa7-Oct-06 1:47 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger7-Oct-06 3:50
professionalChris Losinger7-Oct-06 3:50 
GeneralRe: bug in XmlReader ? Pin
Colin Angus Mackay10-Oct-06 1:05
Colin Angus Mackay10-Oct-06 1:05 
AnswerRe: bug in XmlReader ? [modified] Pin
Dave Kreskowiak6-Oct-06 4:39
mveDave Kreskowiak6-Oct-06 4:39 
GeneralRe: bug in XmlReader ? Pin
Chris Losinger6-Oct-06 4:55
professionalChris Losinger6-Oct-06 4:55 
QuestionConvert a collection into a list?? Pin
roxuca5-Oct-06 4:39
roxuca5-Oct-06 4:39 
AnswerRe: Convert a collection into a list?? Pin
Robert Rohde9-Oct-06 22:33
Robert Rohde9-Oct-06 22:33 
QuestionComplier Error Question Pin
Beringer5-Oct-06 3:42
Beringer5-Oct-06 3:42 
AnswerRe: Complier Error Question Pin
mr_lasseter5-Oct-06 4:48
mr_lasseter5-Oct-06 4:48 
QuestionAutomatic copying of dlls Pin
Seshadri Manivannan4-Oct-06 2:49
Seshadri Manivannan4-Oct-06 2:49 
AnswerRe: Automatic copying of dlls Pin
Dave Kreskowiak4-Oct-06 4:49
mveDave Kreskowiak4-Oct-06 4:49 
QuestionSystem.IO.FileNotFoundException: The specified module could not be found. Pin
Elena_2006oct4-Oct-06 2:47
Elena_2006oct4-Oct-06 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.