L
Laurel
If I have "using System;" at the top of my code, why do I also need "using
System.IO;" or "using System.Xml;" to reference attributes of System.IO and
System.Xml?
In other words, why can't I just use "using System," and then the following?
(I get a compile error if I try).
IO.StringReader strdr = new System.IO.StringReader(strXML);
Xml.XmlTextReader reader = new System.Xml.XmlTextReader(strdr);
Instead, I need to declare "using System.IO" and "using System.Xml" and
then the following format.
StringReader strdr = new System.IO.StringReader(strXML);
XmlTextReader reader = new System.Xml.XmlTextReader(strdr);
TIA - LAS
System.IO;" or "using System.Xml;" to reference attributes of System.IO and
System.Xml?
In other words, why can't I just use "using System," and then the following?
(I get a compile error if I try).
IO.StringReader strdr = new System.IO.StringReader(strXML);
Xml.XmlTextReader reader = new System.Xml.XmlTextReader(strdr);
Instead, I need to declare "using System.IO" and "using System.Xml" and
then the following format.
StringReader strdr = new System.IO.StringReader(strXML);
XmlTextReader reader = new System.Xml.XmlTextReader(strdr);
TIA - LAS