Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1576.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The line number specified for #line directive is missing or invalid

The following sample generates CS1576:

```
```csharp
// CS1576.cs
public class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1578.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Filename, single-line comment or end-of-line expected

The following sample generates CS1578:

```
```csharp
// CS1578.cs
class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1580.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Invalid type for parameter 'parameter number' in XML comment cref attribute

The following sample generates CS1580:

```
```csharp
// CS1580.cs
// compile with: /W:1 /doc:x.xml
using System;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1581.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Invalid return type in XML comment cref attribute
## Example
The following sample generates CS1581:

```
```csharp
// CS1581.cs
// compile with: /W:1 /doc:x.xml

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1584.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ XML comment on 'member' has syntactically incorrect cref attribute 'invalid_synt
## Example
The following sample generates CS1584.

```
```csharp
// CS1584.cs
// compile with: /W:1 /doc:CS1584.xml
/// <remarks>Test class</remarks>
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1585.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Member modifier 'keyword' must precede the member type and name

The following sample generates CS1585:

```
```csharp
// CS1585.cs
public class Class1
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1586.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Array creation must have array size or array initializer

The following sample generates CS1586:

```
```csharp
// CS1586.cs
using System;
class MyClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1587.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ XML comment is not placed on a valid language element
## Example
The following sample generates CS1587:

```
```csharp
// CS1587.cs
// compile with: /W:2 /doc:x.xml

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1589.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Unable to include XML fragment 'fragment' of file 'file' -- reason

The following sample generates CS1589:

```
```csharp
// CS1589.cs
// compile with: /W:1 /doc:CS1589_out.xml

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1590.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Invalid XML include element -- Missing file attribute

The following sample generates CS1590:

```
```csharp
// CS1590.cs
// compile with: /W:1 /doc:x.xml

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1593.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Delegate 'del' does not take 'number' arguments

The following sample generates CS1593:

```
```csharp
// CS1593.cs
using System;
delegate string func(int i); // declare delegate
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1594.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Delegate 'delegate' has some invalid arguments

The following sample generates CS1594:

```
```csharp
// CS1594.cs
using System;
delegate string func(int i); // declare delegate
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1597.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Semicolon after method or accessor block is not valid

The following sample generates CS1597:

```
```csharp
// CS1597.cs
class TestClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1599.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Method or delegate cannot return type 'type'

The following sample generates CS1599:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1601.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Method or delegate parameter cannot be of type 'type'

The following sample generates CS1601:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1609.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Modifiers cannot be placed on event accessor declarations
## Example
The following sample generates CS1609.

```
```csharp
// CS1609.cs
// compile with: /target:library
delegate int Del();
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1611.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The params parameter cannot be declared as ref or out

The following sample generates CS1611:

```
```csharp
// CS1611.cs
public class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1613.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The managed coclass wrapper class 'class' for interface 'interface' cannot be fo

The following sample demonstrates correct usage of **CoClassAttribute**:

```
```csharp
// CS1613.cs
using System;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1615.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Argument 'number' should not be passed with the 'keyword' keyword

The following sample generates CS1615:

```
```csharp
// CS1615.cs
class C
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1618.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot create delegate with 'method' because it has a Conditional attribute

The following sample generates CS1618:

```
```csharp
// CS1618.cs
using System;
using System.Diagnostics;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1620.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Argument 'number' must be passed with the 'keyword' keyword

The following sample generates CS1620:

```
```csharp
// CS1620.cs
class C
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1621.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The yield statement cannot be used inside an anonymous method or lambda expressi
## Example
The following sample generates CS1621:

```
```csharp
// CS1621.cs

using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1622.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot return a value from an iterator. Use the yield return statement to return

The following sample generates CS1622:

```
```csharp
// CS1622.cs
// compile with: /target:library
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1623.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Iterators cannot have ref or out parameters
## Example
The following sample generates CS1623:

```
```csharp
// CS1623.cs
using System.Collections;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1624.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The body of 'accessor' cannot be an iterator block because 'type' is not an iter
## Example
The following sample generates CS1624:

```
```csharp
// CS1624.cs
using System;
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1625.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot yield in the body of a finally clause

The following sample generates CS1625:

```
```csharp
// CS1625.cs
using System.Collections;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1626.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot yield a value in the body of a try block with a catch clause

The following sample generates CS1626:

```
```csharp
// CS1626.cs
using System.Collections;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1627.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Expression expected after yield return

The following sample generates CS1627:

```
```csharp
// CS1627.cs
using System.Collections;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1628.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot use ref or out parameter 'parameter' inside an anonymous method, lambda e

The following sample generates CS1628:

```
```csharp
// CS1628.cs

delegate int MyDelegate();
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1629.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Unsafe code may not appear in iterators

The following sample generates CS1629:

```
```csharp
// CS1629.cs
// compile with: /unsafe
using System.Collections.Generic;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1631.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot yield a value in the body of a catch clause

The following sample generates CS1631:

```
```csharp
// CS1631.cs
using System;
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1632.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Control cannot leave the body of an anonymous method or lambda expression

The following sample generates CS1632:

```
```csharp
// CS1632.cs
// compile with: /target:library
delegate void MyDelegate();
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1633.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Unrecognized #pragma directive

The following sample generates CS1633:

```
```csharp
// CS1633.cs
// compile with: /W:1
#pragma unknown // CS1633
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1634.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Expected disable or restore
## Example
The following sample generates CS1634:

```
```csharp
// CS1634.cs
// compile with: /W:1

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1635.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot restore warning 'warning code' because it was disabled globally

The following sample generates CS1635:

```
```csharp
// CS1635.cs
// compile with: /w:1 /nowarn:162

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1637.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Iterators cannot have unsafe parameters or yield types
## Example
The following sample generates CS1637:

```
```csharp
// CS1637.cs
// compile with: /unsafe
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1638.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ms.author: "wiwagn"
## Example
The following sample generates CS1638:

```
```csharp
// CS1638.cs
// compile with: /langversion:ISO-1
class bad__identifer // CS1638 (double underscores are not ISO compliant)
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1641.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A fixed size buffer field must have the array size specifier after the field nam

The following sample generates CS1641:

```
```csharp
// CS1641.cs
// compile with: /unsafe /target:library
unsafe struct S {
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1642.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Fixed size buffer fields may only be members of structs.
## Example
The following sample generates CS1642.

```
```csharp
// CS1642.cs
// compile with: /unsafe /target:library
unsafe class C
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1643.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Not all code paths return a value in method of type 'type!'
## Example
The following sample generates CS1643:

```
```csharp
// CS1643.cs
delegate int MyDelegate();

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1645.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Feature 'feature' is not part of the standardized ISO C# language specification,

The feature you are using is not part of the ISO standard. Code using this feature may not compile on other compilers.

```
```csharp
// CS1645.cs
// compile with: /W:1 /t:module /langversion:ISO-1
[assembly:System.CLSCompliant(false)]
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1646.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Keyword, identifier, or string expected after verbatim specifier: @

The following sample generates CS1646:

```
```csharp
// CS1646
class C
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1648.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Members of readonly field 'identifier' cannot be modified (except in a construct

The following sample generates CS1648:

```
```csharp
// CS1648.cs
public struct Inner
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs1649.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Members of readonly field 'identifier' cannot be passed ref or out (except in a
## Example
The following sample generates CS1649:

```
```csharp
// CS1649.cs
public struct Inner
{
Expand Down
Loading