(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.GetPa rent("C:\\Docum ents and Settings\\A
User").FullName ;
StringBuilder strBuilder = new
StringBuilder(s trPath);
strBuilder.Appe nd("\\test.xml" );
System.Xml.XmlD ocument objXml =
new System.Xml.XmlD ocument();
objXml.Load(str Path);
}
}
}
namespace ConsoleApp.Test
{
using System.Xml;
public class Class2
{
public Class2()
{
string strPath =
System.IO.Direc tory.GetParent( "C:\\Docume nts and
Settings\\A User").FullName ;
StringBuilder strBuilder = new
StringBuilder(s trPath);
strBuilder.Appe nd("\\test.xml" );
XmlDocument objXml = new
XmlDocument();
objXml.Load(str Path);
}
}
}
//*************** *************** *************** ******
-----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.Collecti ons;
....
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
.