How To Create DEveloper Version

S

ShayHk

Hi all
I want To Define in C# sections that will run only in one Mode

for example


console.write('production1')
console.write('production2')

console.write('testing')

console.write('production3')

The Output will only print the production code and not the testing .

(I remmber that in visual studio 6 c++ I could define running areas
and in the debug choose what area to run on.)
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You can do a similar thing now, using the same tool , just define a symbol
using #define and then use #if , #else, etc

Not a very clear solution I think.

You should think something more oo
 

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.

Ask a Question

Top