J
Jeff Gaines
Accepting that I am a hobbyist rather than a professional programmer I
have always set out my class files like:
using System;
using System.Collections.Generic;
etc.
namespace JGClassGenerator
{
internal class JTestADONETData
{
class functions
}
}
All the samples and examples I have seen are set out in that way.
I am looking at CodeDom to generate class files and it is putting the
namespace right at the top like so:
namespace JGCodeDom
{
using System;
using System.IO;
using System.Data.OleDb;
public class JTest
{
class functions
}
}
Is this a new style or a function of CodeDom?
I can force my usual layout by using code snippets (CodeSnippetCompileUnit
) but it seems to me that defeats the point of using CodeDom in the first
place (I assume it does some error checking to produce reasonable code).
have always set out my class files like:
using System;
using System.Collections.Generic;
etc.
namespace JGClassGenerator
{
internal class JTestADONETData
{
class functions
}
}
All the samples and examples I have seen are set out in that way.
I am looking at CodeDom to generate class files and it is putting the
namespace right at the top like so:
namespace JGCodeDom
{
using System;
using System.IO;
using System.Data.OleDb;
public class JTest
{
class functions
}
}
Is this a new style or a function of CodeDom?
I can force my usual layout by using code snippets (CodeSnippetCompileUnit
) but it seems to me that defeats the point of using CodeDom in the first
place (I assume it does some error checking to produce reasonable code).