Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>C# defines several preprocessor directives, which affect the way that your program’s source file is interpreted by the compiler. These directives affect the text of the source file in which they occur, prior to the translation of the program into object code. The term preprocessor directive comes from the fact that these instructions were traditionally handled by a separate compilation phase called the preprocessor. Today’s modern compiler technology no longer requires a separate preprocessing stage to handle the directives, but the name has stuck.</p> <p>The <code>#define</code> directive defines a character sequence called a symbol. The existence or nonexistence of a symbol can be determined by <code>#if</code> or <code>#elif</code>, and is used to control compilation.</p> <p>The #if and #endif directives allow you to conditionally compile a sequence of code based upon whether an expression involving one or more symbols evaluates to true. A symbol is true if it has been defined. It is false otherwise. Thus, if a symbol has been defined by a <code>#define</code> directive, it will evaluate as true. The general form of #if is</p> <pre><code>#if symbol-expression statement sequence #endif </code></pre> <p>If the expression following #if is true, the code that is between it and <code>#endif</code> is compiled. Otherwise, the intervening code is skipped. The <code>#endif</code> directive marks the end of an #if block. A symbol expression can be as simple as just the name of a symbol. You can also use these operators in a symbol expression: <code>!</code>, <code>==</code>, <code>!=</code>, <code>&amp;&amp;</code>, and <code>||</code>. Parentheses are also allowed.</p> <p><strong>C# 3.0 A Beginner's Guide By Herbert Schildt</strong>(the best book for learning C# IMO)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload