Hi boys and Girls,
Quick question I cannot seem to find the answer to:
Why use CodeDOM to generate a class over say saving the structure of your code as text to a notepad and renaiming it to .cs? or just save it as a .cs file outright?
Why go through all the effort of using CodeDOM if it will be easier to read programmatically i.e.
string = "using bar;"
SaveToFile(file, string);
string = "namespace bla"
AppendToFile(file,string)
string = "{"
AppendToFile(file,string)
etc.
anyone care to venture?
Kind Regards
Marco
p.s. Excuse the pseudo code.