[Top][All Lists]

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

Re: [DotGNU]System.IO.StreamReader lists field Null twice

From: Thomas Lozza
Subject: Re: [DotGNU]System.IO.StreamReader lists field Null twice
Date: Sat, 01 Mar 2003 22:58:45 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

What I'm asking is that -- are you getting different results with MS.NET ?

ms .net says there is only one Null field...

Btw, the compiler should not have to worry too much ... as this is a static field. StreamReader.Null and TextReader.Null should give the right class to pick ..

i got aware of that when the compiler said that there was a multiple definition of 'Null'.. when the compiler imports a class it adds all fields by name to some internal structure.. so it had 'Null' already defined and wanted to added it again.. somehow it doesnt look at the type.. but anyway: when the compiler remembers both fields with different types it will allow the user to use either TextReader or StreamReader in their program... resulting in a runtime-error if the wrong type has been used..


reply via email to

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