Skip to content

adding missing language identifier #2449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 21, 2017
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #elif (C# Reference)
`#elif` lets you create a compound conditional directive. The `#elif` expression will be evaluated if neither the preceding [#if](../../../csharp/language-reference/preprocessor-directives/preprocessor-if.md) nor any preceding, optional, `#elif` directive expressions evaluate to `true`. If a `#elif` expression evaluates to `true`, the compiler evaluates all the code between the `#elif` and the next conditional directive. For example:

```
```csharp
#define VC7
//...
#if debug
Expand All @@ -48,7 +48,7 @@ translation.priority.ht:
## Remarks
`#elif` is equivalent to using:

```
```csharp
#else
#if
```
Expand All @@ -60,4 +60,4 @@ translation.priority.ht:
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ translation.priority.ht:
# #endif (C# Reference)
`#endif` specifies the end of a conditional directive, which began with the [#if](../../../csharp/language-reference/preprocessor-directives/preprocessor-if.md) directive. For example,

```
#define DEBUG
```csharp
#define DEBUG
// ...
#if DEBUG
Console.WriteLine("Debug version");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ translation.priority.ht:
# #endregion (C# Reference)
`#endregion` marks the end of a [#region](../../../csharp/language-reference/preprocessor-directives/preprocessor-region.md) block. For example:

```
#region MyClass definition
```csharp
#region MyClass definition
class MyClass
{
static void Main()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #error (C# Reference)
`#error` lets you generate an error from a specific location in your code. For example:

```
```csharp
#error Deprecated code in this method.
```

Expand All @@ -44,7 +44,7 @@ translation.priority.ht:

## Example

```
```csharp
// preprocessor_error.cs
// CS1029 expected
#define DEBUG
Expand All @@ -62,4 +62,4 @@ class MainClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #if (C# Reference)
When the C# compiler encounters an `#if` directive, followed eventually by an [#endif](../../../csharp/language-reference/preprocessor-directives/preprocessor-endif.md) directive, it will compile the code between the directives only if the specified symbol is defined. Unlike C and C++, you cannot assign a numeric value to a symbol; the #if statement in C# is Boolean and only tests whether the symbol has been defined or not. For example,

```
```csharp
#define DEBUG
// ...
#if DEBUG
Expand All @@ -58,7 +58,7 @@ When the C# compiler encounters an `#if` directive, followed eventually by an [#

## Example

```
```csharp
// preprocessor_if.cs
#define DEBUG#define MYTEST
using System;
Expand All @@ -83,4 +83,4 @@ public class MyClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #line (C# Reference)
`#line` lets you modify the compiler's line number and (optionally) the file name output for errors and warnings. This example shows how to report two warnings associated with line numbers. The `#line 200` directive forces the line number to be 200 (although the default is #7) and until the next #line directive, the filename will be reported as "Special". The #line default directive returns the line numbering to its default numbering, which counts the lines that were renumbered by the previous directive.

```
```csharp
class MainClass
{
static void Main()
Expand Down Expand Up @@ -65,7 +65,7 @@ class MainClass
## Example 1
The following example shows how the debugger ignores the hidden lines in the code. When you run the example, it will display three lines of text. However, when you set a break point, as shown in the example, and hit F10 to step through the code, you will notice that the debugger ignores the hidden line. Notice also that even if you set a break point at the hidden line, the debugger will still ignore it.

```
```csharp
// preprocessor_linehidden.cs
using System;
class MainClass
Expand All @@ -84,4 +84,4 @@ class MainClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Generates checksums for source files to aid with debugging [!INCLUDE[vstecasp](~

## Syntax

```
```csharp
#pragma checksum "filename" "{guid}" "checksum bytes"
```

Expand All @@ -60,7 +60,7 @@ Generates checksums for source files to aid with debugging [!INCLUDE[vstecasp](~

## Example

```
```csharp
class TestClass
{
static int Main()
Expand All @@ -73,4 +73,4 @@ class TestClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ translation.priority.mt:

## Syntax

```
```csharp
#pragma warning disable warning-list
#pragma warning restore warning-list
```
Expand All @@ -52,7 +52,7 @@ translation.priority.mt:

## Example

```
```csharp
// pragma_warning.cs
using System;

Expand Down Expand Up @@ -80,4 +80,4 @@ public class D
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Compiler Errors](../../../csharp/language-reference/compiler-messages/index.md)
[C# Compiler Errors](../../../csharp/language-reference/compiler-messages/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ translation.priority.ht:

## Syntax

```
```csharp
#pragma pragma-name pragma-arguments
```

Expand All @@ -55,4 +55,4 @@ translation.priority.ht:
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[#pragma warning](../../../csharp/language-reference/preprocessor-directives/preprocessor-pragma-warning.md)
[#pragma checksum](../../../csharp/language-reference/preprocessor-directives/preprocessor-pragma-checksum.md)
[#pragma checksum](../../../csharp/language-reference/preprocessor-directives/preprocessor-pragma-checksum.md)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #region (C# Reference)
`#region` lets you specify a block of code that you can expand or collapse when using the [outlining](https://docs.microsoft.com/visualstudio/ide/outlining) feature of the Visual Studio Code Editor. In longer code files, it is convenient to be able to collapse or hide one or more regions so that you can focus on the part of the file that you are currently working on. The following example shows how to define a region:

```
```csharp
#region MyClass definition
public class MyClass
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ translation.priority.ht:

## Example

```
```csharp
// preprocessor_undef.cs
// compile with: /d:DEBUG
#undef DEBUG
Expand All @@ -59,4 +59,4 @@ class MyClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ translation.priority.ht:
# #warning (C# Reference)
`#warning` lets you generate a level one warning from a specific location in your code. For example:

```
```csharp
#warning Deprecated code in this method.
```

Expand All @@ -42,7 +42,7 @@ translation.priority.ht:

## Example

```
```csharp
// preprocessor_warning.cs
// CS1030 expected
#define DEBUG
Expand All @@ -60,4 +60,4 @@ class MainClass
## See Also
[C# Reference](../../../csharp/language-reference/index.md)
[C# Programming Guide](../../../csharp/programming-guide/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)
[C# Preprocessor Directives](../../../csharp/language-reference/preprocessor-directives/index.md)