Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / May 2007

Tip: Looking for answers? Try searching our database.

How To Create DEveloper Version

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ShayHk - 17 May 2007 15:23 GMT
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.)
Ignacio Machin ( .NET/ C# MVP ) - 17 May 2007 16:20 GMT
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

> Hi all
> I want To Define in C# sections that will run only in one Mode
[quoted text clipped - 12 lines]
> (I remmber that in visual studio 6 c++ I could define running areas
> and in the debug choose what area to run on.)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.