What are the different C# preprocessor directives?

 Posted by Abhisek on 1/21/2010 | Category: C# Interview questions | Views: 2883
Answer:

#region , #endregion :- Used to mark sections of code that can be collapsed.

#define , #undef :-Used to define and undefine conditional compilation symbols.

#if , #elif , #else , #endif :- These are used to conditionally skip sections of source code.


Asked In: Interviews | Alert Moderator 

Comments or Responses

Login to post response