FAQ : Computer>C Sharp

What is preprocessor directivees and its use?

C# preprocessor is fundamentally similar to C++ preprocessor. The whole concept in C# has been taken from C++ language. The main use of preprocessor directives are as follows:
1. Conditional compilation
2. Line control
3. Error and warning reporting

There are two methods to define directive as follows:
a. Define in our C# program
b. Define them at command line at compiling time.

Previous Page        Next Page

Programing with C