Skip to content

Commit

Permalink
adding missing language identifiers (dotnet#4615)
Browse files Browse the repository at this point in the history
  • Loading branch information
sputier authored and BillWagner committed Mar 12, 2018
1 parent 5cf6214 commit ea7279c
Show file tree
Hide file tree
Showing 50 changed files with 57 additions and 57 deletions.
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0437.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The type 'type' in 'assembly2' conflicts with the imported namespace 'namespace'

## Example

```
```csharp
// CS0437_a.cs
// compile with: /target:library
namespace Util
Expand All @@ -37,7 +37,7 @@ namespace Util
## Example
The following sample generates CS0437.

```
```csharp
// CS0437_b.cs
// compile with: /reference:CS0437_a.dll /W:2
// CS0437 expected
Expand Down
6 changes: 3 additions & 3 deletions docs/csharp/misc/cs0438.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The type 'type' in 'module_1' conflicts with the namespace 'namespace' in 'modul

Compile this file first:

```
```csharp
// CS0438_1.cs
// compile with: /target:module
public class Util
Expand All @@ -34,7 +34,7 @@ public class Util

Then compile this file:

```
```csharp
// CS0438_2.cs
// compile with: /target:module
namespace Util
Expand All @@ -45,7 +45,7 @@ namespace Util

And then compile this file:

```
```csharp
// CS0438_3.cs
// compile with: /addmodule:CS0438_1.netmodule /addmodule:CS0438_2.netmodule
using System;
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0439.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ An extern alias declaration must precede all other elements defined in the names
## Example
The following example generates CS0439:

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0440.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Defining an alias named 'global' is ill-advised since 'global::' always referenc
## Example
The following example generates CS0440:

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

The following example generates CS0441:

```
```csharp
// CS0441.cs
sealed static class MyClass { } // CS0441
```
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0442.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 CS0442:

```
```csharp
// CS0442.cs
public abstract class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0443.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Syntax error, value expected
## Example
The following code generates CS0443.

```
```csharp
// CS0443.cs
using System;
class MyClass
Expand Down
6 changes: 3 additions & 3 deletions docs/csharp/misc/cs0447.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ Attributes cannot be used on type arguments, only on type parameters

This error occurs when you apply an attribute to a type argument that occurs in an invocation statement. It is acceptable to apply an attribute to a type parameter in a class or method declaration statement such as the following:

```
```csharp
class C<[some attribute] T> {…}
```

The following line of code will generate this error. It is assumed that the class `C`, defined in the previous line of code, has a static method called `MyStaticMethod`.

```
```csharp
C<[some attribute] T>.MyStaticMethod();
```

## Example
The following code generates error CS0447.

```
```csharp
// CS0447.cs
using System;
namespace Test41
Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0448.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The return type for ++ or -- operator must be the containing type or derived fro
## Example
The following sample generates CS0448.

```
```csharp
// CS0448.cs
class C5
{
Expand All @@ -35,7 +35,7 @@ class C5
## Example
The following sample generates CS0448.

```
```csharp
// CS0448_b.cs
public struct S
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0449.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The 'class' or 'struct' constraint must come before any other constraints
## Example
The following sample generates CS0449.

```
```csharp
// CS0449.cs
// compile with: /target:library
interface I {}
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0450.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

## Example

```
```csharp
// CS0450.cs
// compile with: /t:library
public class GenericsErrors
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0451.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The 'new()' constraint cannot be used with the 'struct' constraint
## Example
The following sample generates CS0451.

```
```csharp
// CS0451.cs
using System;
public class C4
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0452.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The type 'type name' must be a reference type in order to use it as parameter 'p
## Example
The following code generates error CS0452.

```
```csharp
// CS0452.cs
using System;
public class BaseClass<S> where S : class { }
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0453.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The type 'Type Name' must be a non-nullable value type in order to use it as par
## Example
The following code generates this error.

```
```csharp
// CS0453.cs
using System;
public class HV<S> where S : struct { }
Expand Down
4 changes: 2 additions & 2 deletions docs/csharp/misc/cs0454.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Circular constraint dependency involving 'Type Parameter 1' and 'Type Parameter
## Example
The following code generates error CS0454.

```
```csharp
// CS0554
using System;
public class GenericsErrors
Expand All @@ -34,7 +34,7 @@ public class GenericsErrors
## Example
The following example demonstrates a circular dependency between two type constraints.

```
```csharp
public class Gen<T,U> where T : U where U : T // CS0454
{
}
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0455.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Type parameter 'Type Parameter Name' inherits conflicting constraints 'Constrain
## Example
The following code generates error CS0455.

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

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0456.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Type parameter 'Type Parameter Name 1' has the 'struct' constraint so 'Type Para
## Example
The following sample generates CS0456.

```
```csharp
// CS0456.cs
// compile with: /target:library
public class GenericsErrors
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0457.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Ambiguous user defined conversions 'Conversion method name 1' and 'Conversion me
## Example
The following sample generates CS0457.

```
```csharp
// CS0457.cs
using System;
public class A { }
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0458.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The result of the expression is always 'null' of type 'type name'
## Example
This example illustrates a number of the different operations with `nullable` types that will cause this error.

```
```csharp
// CS0458.cs
using System;
public class Test
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0459.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Cannot take the address of a read-only local variable
## Example
The following example generates CS0459 when an attempt is made to take the address of a read-only local variable in a `foreach` loop and in a `fixed` statement block.

```
```csharp
// CS0459.cs
// compile with: /unsafe
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0460.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Constraints for override and explicit interface implementation methods are inher
## Example
The following sample generates CS0460.

```
```csharp
// CS0460.cs
// compile with: /target:library
class BaseClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0462.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The inherited members 'member1' and 'member2' have the same signature in type 't

The following sample generates CS0462.

```
```csharp
// CS0462.cs
// compile with: /target:library
class C<T>
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0463.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Evaluation of the decimal constant expression failed with error: 'error'
## Example
The following code generates error CS0463.

```
```csharp
// CS0463.cs
using System;
class MyClass
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0464.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Comparing with null of type 'type' always produces 'false'
## Example
The following sample generates CS0464.

```
```csharp
// CS0464.cs
class MyClass
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0466.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 CS0466.

```
```csharp
// CS0466.cs
interface I
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0469.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The 'goto case' value is not implicitly convertible to type 'type'
## Example
The following sample generates CS0469.

```
```csharp
// CS0469.cs
// compile with: /W:2
class Test
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0470.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Method 'method' cannot implement interface accessor 'accessor' for type 'type'.
## Example
The following sample generates CS0470.

```
```csharp
// CS0470.cs
// compile with: /target:library
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0471.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The method 'name' is not a generic method. If you intended an expression list, u
## Example
The following example generates CS0471.

```
```csharp
// CS0471.cs
// compile with: /t:library
class Test
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0472.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The result of the expression is always 'value1' since a value of type 'value2' i
## Example
The following sample generates CS0472.

```
```csharp
public class Test
{
public static int Main()
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0473.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Explicit interface implementation 'method name' matches more than one interface
## Example
The following code generates CS0473:

```
```csharp
// cs0473.cs
public interface ITest<T>
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0500.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ms.author: "wiwagn"

The following sample generates CS0500:

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

The following sample generates CS0501:

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

The following sample generates CS0502:

```
```csharp
// CS0502.cs
public class B
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0503.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The abstract method 'method' cannot be marked virtual

The following sample generates CS0503:

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

The following sample generates CS0505:

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

The following sample generates CS0506:

```
```csharp
// CS0506.cs
namespace MyNameSpace
{
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/misc/cs0508.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 CS0508.

```
```csharp
// CS0508.cs
// compile with: /target:library
abstract public class Clx
Expand Down
Loading

0 comments on commit ea7279c

Please sign in to comment.