that's why CodeSnippets exists. The thing is I don't know where to insert an CodeSnippetStatement/Expression 'cause they must be added to a collection like when you do
SomeMethod.Statements.Add(MyCodeSnippetStatement)
since #region statements are floating "freely" in the code, and do not belong to any structure like a class or something else, i dont know where to put it.
I thought the namespace or the compilaton unit would have a "CodeLines" collection but couldn't find it. By the way... is LinePragma something I can use. Google return just 5 pages about it.
Just because these two languages support the construct does not mean that it
is not language specific.
There are lots of languages out there (Perl, COBAL, Pascal, VB, C#, C++,
Java, etc.) Not all of these languages necessarily support defining of
regions.
There are lots of languages out there (Perl, COBAL, Pascal, VB, C#,
C++, Java, etc.) Not all of these languages necessarily support
defining of regions.
yeah, that's a good point. I get the idea.
Anyways, CodeSnippet(Statement/Expression) are CodeDom classes designed to
achieve these language specific features. Do you know of any way to generate
this sentence?
Not really. It is a part of source code thus the compiler has to deal with
it.
It is true that it is usefull only if IDE uses it though.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.