I have a DOS console application that when processing files will output information to the screen.This is a nice feature when I run the program. But when in production it would somehow be niceto turn of all of my Console.WriteLine statements. Because unlike my test environment, in production,several hundred files will be processed, and printing out console information will slow my console applicationdown. (I think. You see the console application is set up to run as a scheduled task everyday at 12 noon)
So here is my question. Can the console.writilines be turned off in production using C# pre-processor directives?I have read about the Pre-Processor directives, but something is not clicking in regards to how I can apply it.So I am hoping I can apply it in the situation I just described.
View Complete Post