(Line wrap alert - didn't fix them)
//***************************************
using System.Text;
namespace ConsoleApp
{
using System.IO;
class Class1
{
[STAThread]
static void Main(string[] args)
{
string strPath =
Directory.GetParent("C:\\Documents and Settings\\A
User").FullName;
StringBuilder strBuilder = new
StringBuilder(strPath);
strBuilder.Append("\\test.xml");
System.Xml.XmlDocument objXml =
new System.Xml.XmlDocument();
objXml.Load(strPath);
}
}
}
namespace ConsoleApp.Test
{
using System.Xml;
public class Class2
{
public Class2()
{
string strPath =
System.IO.Directory.GetParent("C:\\Documents and
Settings\\A User").FullName;
StringBuilder strBuilder = new
StringBuilder(strPath);
strBuilder.Append("\\test.xml");
XmlDocument objXml = new
XmlDocument();
objXml.Load(strPath);
}
}
}
//************************************************** *
-----Original Message-----
I was looking at the GFAX - Gnome fax application and i
seethat in the main.cs the author puts the using inside his
namespace.
namespace gfax {
using System;
using System.IO;
using System.Collections;
....
But in all the tutorial i have seen they start with
using and thenstart their namespace.
What would be the difference and/or advantage?
Joeri
.