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/cs0629.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Conditional member 'member' cannot implement interface member 'base class member

The following sample generates CS0629:

```
```csharp
// CS0629.cs
interface MyInterface
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0631.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ref and out are not valid in this context
## Example
The following sample generates CS0631:

```
```csharp
// CS0631.cs
public class MyClass
{
Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0633.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The argument to the 'attribute' attribute must be a valid identifier
## Example
This example illustrates CS0633 using the <xref:System.Diagnostics.ConditionalAttribute>. The following sample generates CS0633.

```
```csharp
// CS0633a.cs
#define DEBUG
using System.Diagnostics;
Expand All @@ -38,7 +38,7 @@ public class Test
## Example
This example illustrates CS0633 using the <xref:System.Runtime.CompilerServices.IndexerNameAttribute>.

```
```csharp
// CS0633b.cs
// compile with: /target:module
#define DEBUG
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0636.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The FieldOffset attribute can only be placed on members of types marked with the

The following sample generates CS0636:

```
```csharp
// CS0636.cs
using System;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0637.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The FieldOffset attribute is not allowed on static or const fields.

The following sample generates CS0637:

```
```csharp
// CS0637.cs
using System;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0641.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0641:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0642.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Possible mistaken empty statement

The following sample generates CS0642:

```
```csharp
// CS0642.cs
// compile with: /W:3
class MyClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0643.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 CS0643:

```
```csharp
// CS0643.cs
using System;
using System.Runtime.InteropServices;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0644.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ms.author: "wiwagn"

The following sample generates CS0644:

```
```csharp
// CS0644.cs
class MyClass : System.ValueType // CS0644
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0646.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot specify the DefaultMember attribute on a type containing an indexer

The following sample generates CS0646:

```
```csharp
// CS0646.cs
// compile with: /target:library
[System.Reflection.DefaultMemberAttribute("x")] // CS0646
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0647.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Error emitting 'attribute' attribute -- 'reason'

The following sample generates CS0647:

```
```csharp
// CS0647.cs
using System.Runtime.InteropServices;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0649.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Field 'field' is never assigned to, and will always have its default value 'valu

The following sample generates CS0649:

```
```csharp
// CS0649.cs
// compile with: /W:4
using System.Collections;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0652.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Comparison to integral constant is useless; the constant is outside the range of

The following sample generates CS0652:

```
```csharp
// CS0652.cs
// compile with: /W:2
public class Class1
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0653.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot apply attribute class 'class' because it is abstract

The following sample generates CS0653:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0655.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 CS0655:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0657.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0657:

```
```csharp
// CS0657.cs
// compile with: /target:library
public class TestAttribute : System.Attribute {}
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0658.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0658:

```
```csharp
// CS0658.cs
using System;
public class TestAttribute : Attribute{}
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0659.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ ms.author: "wiwagn"

The following sample generates CS0659:

```
```csharp
// CS0659.cs
// compile with: /W:3 /target:library
class Test
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0660.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0660:

```
```csharp
// CS0660.cs
// compile with: /W:3 /warnaserror
class Test // CS0660
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0661.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0661:

```
```csharp
// CS0661.cs
// compile with: /W:3
class Test // CS0661
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0663.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot define overloaded methods that differ only on ref and out.

The following sample generates CS0663:

```
```csharp
// CS0663.cs
class TestClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0665.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Assignment in conditional expression is always constant; did you mean to use ==

The following sample generates CS0665:

```
```csharp
// CS0665.cs
// compile with: /W:3
class Test
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0666.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 CS0666:

```
```csharp
// CS0666.cs
class M
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0670.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Field cannot have void type

The following sample generates CS0670:

```
```csharp
// CS0670.cs
class C
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0672.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Member 'member1' overrides obsolete member 'member2. Add the Obsolete attribute

The following sample generates CS0672:

```
```csharp
// CS0672.cs
// compile with: /W:1
class MyClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0673.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ System.Void cannot be used from C# -- use typeof(void) to get the void type obje

The following sample generates CS0673:

```
```csharp
// CS0673.cs
class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0674.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Do not use 'System.ParamArrayAttribute'. Use the 'params' keyword instead.

The following sample generates CS0674:

```
```csharp
// CS0674.cs
using System;
public class MyClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0677.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ms.author: "wiwagn"

The following sample generates CS0677:

```
```csharp
// CS0677.cs
class TestClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0678.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0678:

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

Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0681.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The modifier 'abstract' is not valid on fields. Try using a property instead
## Example
The following sample generates CS0681:

```
```csharp
// CS0681.cs
// compile with: /target:library
abstract class C
Expand All @@ -34,7 +34,7 @@ abstract class C
## Example
Try the following code instead:

```
```csharp
// CS0681b.cs
// compile with: /target:library
abstract class C
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0683.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ms.author: "wiwagn"

The following sample generates CS0683:

```
```csharp
// CS0683.cs
interface IExample
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0684.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0684:

```
```csharp
// CS0684.cs
// compile with: /W:1
using System;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0685.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Conditional member 'member' cannot have an out parameter
## Example
The following sample generates CS0685:

```
```csharp
// CS0685.cs
using System.Diagnostics;

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0687.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The namespace alias qualifier '::' always resolves to a type or namespace so is
## Example
The following sample generates CS0687:

```
```csharp
// CS0687.cs

using M = Test;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0688.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 CS0688. To resolve the warning without modifying the base class, remove the security attribute from the overriding method. This will not solve the security problem.

```
```csharp
// CS0688.cs
// compile with: /W:1
using System;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0689.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Cannot derive from 'identifier' because it is a type parameter

The following sample generates CS0689:

```
```csharp
// CS0689.cs
class A<T> : T // CS0689
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0692.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Duplicate type parameter 'identifier'
## Example
The following sample generates CS0692:

```
```csharp
// CS0692.cs
// compile with: /target:library
class C <T, A, T> // CS0692
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0693.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Type parameter 'type parameter' has the same name as the type parameter from out
## Example
The following sample generates CS0693.

```
```csharp
// CS0693.cs
// compile with: /W:3 /target:library
class Outer<T>
Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0694.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Type parameter 'identifier' has the same name as the containing type, or method
## Example
The following sample generates CS0694.

```
```csharp
// CS0694.cs
// compile with: /target:library
class C<C> {} // CS0694
Expand All @@ -31,7 +31,7 @@ class C<C> {} // CS0694
## Example
In addition to the above case involving a generic class, this error may occur with a method:

```
```csharp
// CS0694_2.cs
// compile with: /target:library
class A
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0695.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0695:

```
```csharp
// CS0695.cs
// compile with: /target:library

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0698.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A generic type cannot derive from 'class' because it is an attribute class

The following sample generates CS0698:

```
```csharp
// CS0698.cs
class C<T> : System.Attribute // CS0698
{
Expand Down
Loading