From 4ed85dfc1b29a2f0ea803eae42e25b5a594b2076 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20PUTIER?= Date: Sun, 11 Mar 2018 22:36:56 +0100 Subject: [PATCH] adding missing language identifiers --- docs/csharp/misc/cs1576.md | 2 +- docs/csharp/misc/cs1578.md | 2 +- docs/csharp/misc/cs1580.md | 2 +- docs/csharp/misc/cs1581.md | 2 +- docs/csharp/misc/cs1584.md | 2 +- docs/csharp/misc/cs1585.md | 2 +- docs/csharp/misc/cs1586.md | 2 +- docs/csharp/misc/cs1587.md | 2 +- docs/csharp/misc/cs1589.md | 2 +- docs/csharp/misc/cs1590.md | 2 +- docs/csharp/misc/cs1593.md | 2 +- docs/csharp/misc/cs1594.md | 2 +- docs/csharp/misc/cs1597.md | 2 +- docs/csharp/misc/cs1599.md | 2 +- docs/csharp/misc/cs1601.md | 2 +- docs/csharp/misc/cs1609.md | 2 +- docs/csharp/misc/cs1611.md | 2 +- docs/csharp/misc/cs1613.md | 2 +- docs/csharp/misc/cs1615.md | 2 +- docs/csharp/misc/cs1618.md | 2 +- docs/csharp/misc/cs1620.md | 2 +- docs/csharp/misc/cs1621.md | 2 +- docs/csharp/misc/cs1622.md | 2 +- docs/csharp/misc/cs1623.md | 2 +- docs/csharp/misc/cs1624.md | 2 +- docs/csharp/misc/cs1625.md | 2 +- docs/csharp/misc/cs1626.md | 2 +- docs/csharp/misc/cs1627.md | 2 +- docs/csharp/misc/cs1628.md | 2 +- docs/csharp/misc/cs1629.md | 2 +- docs/csharp/misc/cs1631.md | 2 +- docs/csharp/misc/cs1632.md | 2 +- docs/csharp/misc/cs1633.md | 2 +- docs/csharp/misc/cs1634.md | 2 +- docs/csharp/misc/cs1635.md | 2 +- docs/csharp/misc/cs1637.md | 2 +- docs/csharp/misc/cs1638.md | 2 +- docs/csharp/misc/cs1641.md | 2 +- docs/csharp/misc/cs1642.md | 2 +- docs/csharp/misc/cs1643.md | 2 +- docs/csharp/misc/cs1645.md | 2 +- docs/csharp/misc/cs1646.md | 2 +- docs/csharp/misc/cs1648.md | 2 +- docs/csharp/misc/cs1649.md | 2 +- docs/csharp/misc/cs1650.md | 2 +- docs/csharp/misc/cs1651.md | 2 +- docs/csharp/misc/cs1654.md | 2 +- docs/csharp/misc/cs1655.md | 2 +- docs/csharp/misc/cs1657.md | 4 ++-- docs/csharp/misc/cs1660.md | 2 +- 50 files changed, 51 insertions(+), 51 deletions(-) diff --git a/docs/csharp/misc/cs1576.md b/docs/csharp/misc/cs1576.md index ec830a8f0f29f..e9df76fc2fc1f 100644 --- a/docs/csharp/misc/cs1576.md +++ b/docs/csharp/misc/cs1576.md @@ -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 { diff --git a/docs/csharp/misc/cs1578.md b/docs/csharp/misc/cs1578.md index db2326fc6e312..e531b52651df1 100644 --- a/docs/csharp/misc/cs1578.md +++ b/docs/csharp/misc/cs1578.md @@ -21,7 +21,7 @@ Filename, single-line comment or end-of-line expected The following sample generates CS1578: -``` +```csharp // CS1578.cs class MyClass { diff --git a/docs/csharp/misc/cs1580.md b/docs/csharp/misc/cs1580.md index 4205f95e11d8f..767b9cdb15877 100644 --- a/docs/csharp/misc/cs1580.md +++ b/docs/csharp/misc/cs1580.md @@ -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; diff --git a/docs/csharp/misc/cs1581.md b/docs/csharp/misc/cs1581.md index 41403346bb0da..b037cdd47e3ba 100644 --- a/docs/csharp/misc/cs1581.md +++ b/docs/csharp/misc/cs1581.md @@ -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 diff --git a/docs/csharp/misc/cs1584.md b/docs/csharp/misc/cs1584.md index a0165f69f4bc6..0dffd51bb850b 100644 --- a/docs/csharp/misc/cs1584.md +++ b/docs/csharp/misc/cs1584.md @@ -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 /// Test class diff --git a/docs/csharp/misc/cs1585.md b/docs/csharp/misc/cs1585.md index bee7a28c7796a..0318628bc5350 100644 --- a/docs/csharp/misc/cs1585.md +++ b/docs/csharp/misc/cs1585.md @@ -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 { diff --git a/docs/csharp/misc/cs1586.md b/docs/csharp/misc/cs1586.md index 440b3aa2df3e0..33e25390e1216 100644 --- a/docs/csharp/misc/cs1586.md +++ b/docs/csharp/misc/cs1586.md @@ -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 diff --git a/docs/csharp/misc/cs1587.md b/docs/csharp/misc/cs1587.md index d453e5429e8ef..b317386521d9e 100644 --- a/docs/csharp/misc/cs1587.md +++ b/docs/csharp/misc/cs1587.md @@ -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 diff --git a/docs/csharp/misc/cs1589.md b/docs/csharp/misc/cs1589.md index 4ecba2d7c15ef..1ef65385c4344 100644 --- a/docs/csharp/misc/cs1589.md +++ b/docs/csharp/misc/cs1589.md @@ -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 diff --git a/docs/csharp/misc/cs1590.md b/docs/csharp/misc/cs1590.md index 9183abe08d8fb..cd14b0b3ea27d 100644 --- a/docs/csharp/misc/cs1590.md +++ b/docs/csharp/misc/cs1590.md @@ -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 diff --git a/docs/csharp/misc/cs1593.md b/docs/csharp/misc/cs1593.md index 7448ac86ce2f8..62666a526df95 100644 --- a/docs/csharp/misc/cs1593.md +++ b/docs/csharp/misc/cs1593.md @@ -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 diff --git a/docs/csharp/misc/cs1594.md b/docs/csharp/misc/cs1594.md index 900c33d06126a..19684fc457914 100644 --- a/docs/csharp/misc/cs1594.md +++ b/docs/csharp/misc/cs1594.md @@ -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 diff --git a/docs/csharp/misc/cs1597.md b/docs/csharp/misc/cs1597.md index 7c32b26f9a0d7..f4199a00ef58e 100644 --- a/docs/csharp/misc/cs1597.md +++ b/docs/csharp/misc/cs1597.md @@ -21,7 +21,7 @@ Semicolon after method or accessor block is not valid The following sample generates CS1597: -``` +```csharp // CS1597.cs class TestClass { diff --git a/docs/csharp/misc/cs1599.md b/docs/csharp/misc/cs1599.md index 98f6bc835e747..3c4adb5a58d70 100644 --- a/docs/csharp/misc/cs1599.md +++ b/docs/csharp/misc/cs1599.md @@ -21,7 +21,7 @@ Method or delegate cannot return type 'type' The following sample generates CS1599: -``` +```csharp // CS1599.cs using System; diff --git a/docs/csharp/misc/cs1601.md b/docs/csharp/misc/cs1601.md index 8c562b92f143a..847ff4b178b34 100644 --- a/docs/csharp/misc/cs1601.md +++ b/docs/csharp/misc/cs1601.md @@ -21,7 +21,7 @@ Method or delegate parameter cannot be of type 'type' The following sample generates CS1601: -``` +```csharp // CS1601.cs using System; diff --git a/docs/csharp/misc/cs1609.md b/docs/csharp/misc/cs1609.md index a52572c8fb7cc..c364e692168ae 100644 --- a/docs/csharp/misc/cs1609.md +++ b/docs/csharp/misc/cs1609.md @@ -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(); diff --git a/docs/csharp/misc/cs1611.md b/docs/csharp/misc/cs1611.md index d93eb5c4cc0d2..1498406f722d4 100644 --- a/docs/csharp/misc/cs1611.md +++ b/docs/csharp/misc/cs1611.md @@ -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 { diff --git a/docs/csharp/misc/cs1613.md b/docs/csharp/misc/cs1613.md index 6787a8db186b7..ca9c3f61f756b 100644 --- a/docs/csharp/misc/cs1613.md +++ b/docs/csharp/misc/cs1613.md @@ -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; diff --git a/docs/csharp/misc/cs1615.md b/docs/csharp/misc/cs1615.md index 14a62b52089ba..c75e371952e63 100644 --- a/docs/csharp/misc/cs1615.md +++ b/docs/csharp/misc/cs1615.md @@ -21,7 +21,7 @@ Argument 'number' should not be passed with the 'keyword' keyword The following sample generates CS1615: -``` +```csharp // CS1615.cs class C { diff --git a/docs/csharp/misc/cs1618.md b/docs/csharp/misc/cs1618.md index 0dec418555a39..d376e82955ed1 100644 --- a/docs/csharp/misc/cs1618.md +++ b/docs/csharp/misc/cs1618.md @@ -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; diff --git a/docs/csharp/misc/cs1620.md b/docs/csharp/misc/cs1620.md index 2fcef6f9fb311..b867f6578db61 100644 --- a/docs/csharp/misc/cs1620.md +++ b/docs/csharp/misc/cs1620.md @@ -21,7 +21,7 @@ Argument 'number' must be passed with the 'keyword' keyword The following sample generates CS1620: -``` +```csharp // CS1620.cs class C { diff --git a/docs/csharp/misc/cs1621.md b/docs/csharp/misc/cs1621.md index f08d730896475..2c25cd583c137 100644 --- a/docs/csharp/misc/cs1621.md +++ b/docs/csharp/misc/cs1621.md @@ -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; diff --git a/docs/csharp/misc/cs1622.md b/docs/csharp/misc/cs1622.md index 2997b1d7268c5..e57643cebdfc9 100644 --- a/docs/csharp/misc/cs1622.md +++ b/docs/csharp/misc/cs1622.md @@ -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; diff --git a/docs/csharp/misc/cs1623.md b/docs/csharp/misc/cs1623.md index af9146f3d04dc..7680e8149be25 100644 --- a/docs/csharp/misc/cs1623.md +++ b/docs/csharp/misc/cs1623.md @@ -22,7 +22,7 @@ Iterators cannot have ref or out parameters ## Example The following sample generates CS1623: -``` +```csharp // CS1623.cs using System.Collections; diff --git a/docs/csharp/misc/cs1624.md b/docs/csharp/misc/cs1624.md index 6bfd500e220f2..ec41e7c4f5286 100644 --- a/docs/csharp/misc/cs1624.md +++ b/docs/csharp/misc/cs1624.md @@ -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; diff --git a/docs/csharp/misc/cs1625.md b/docs/csharp/misc/cs1625.md index f44c9a7c86229..adeef86977370 100644 --- a/docs/csharp/misc/cs1625.md +++ b/docs/csharp/misc/cs1625.md @@ -21,7 +21,7 @@ Cannot yield in the body of a finally clause The following sample generates CS1625: -``` +```csharp // CS1625.cs using System.Collections; diff --git a/docs/csharp/misc/cs1626.md b/docs/csharp/misc/cs1626.md index 20bac1348dda7..d27d31fbf05b2 100644 --- a/docs/csharp/misc/cs1626.md +++ b/docs/csharp/misc/cs1626.md @@ -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; diff --git a/docs/csharp/misc/cs1627.md b/docs/csharp/misc/cs1627.md index 85e5305a383ad..6e6631bdf3230 100644 --- a/docs/csharp/misc/cs1627.md +++ b/docs/csharp/misc/cs1627.md @@ -21,7 +21,7 @@ Expression expected after yield return The following sample generates CS1627: -``` +```csharp // CS1627.cs using System.Collections; diff --git a/docs/csharp/misc/cs1628.md b/docs/csharp/misc/cs1628.md index 46c1fdb05e737..ca00548d3e7c0 100644 --- a/docs/csharp/misc/cs1628.md +++ b/docs/csharp/misc/cs1628.md @@ -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(); diff --git a/docs/csharp/misc/cs1629.md b/docs/csharp/misc/cs1629.md index a949f4f0eb7e0..55c478cd3f2b8 100644 --- a/docs/csharp/misc/cs1629.md +++ b/docs/csharp/misc/cs1629.md @@ -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; diff --git a/docs/csharp/misc/cs1631.md b/docs/csharp/misc/cs1631.md index e6b0888251939..77e51f5f71de4 100644 --- a/docs/csharp/misc/cs1631.md +++ b/docs/csharp/misc/cs1631.md @@ -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; diff --git a/docs/csharp/misc/cs1632.md b/docs/csharp/misc/cs1632.md index af0b674b7bbb4..b80255899636f 100644 --- a/docs/csharp/misc/cs1632.md +++ b/docs/csharp/misc/cs1632.md @@ -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(); diff --git a/docs/csharp/misc/cs1633.md b/docs/csharp/misc/cs1633.md index 0ea4439e46531..cf8fb8b08aaca 100644 --- a/docs/csharp/misc/cs1633.md +++ b/docs/csharp/misc/cs1633.md @@ -21,7 +21,7 @@ Unrecognized #pragma directive The following sample generates CS1633: -``` +```csharp // CS1633.cs // compile with: /W:1 #pragma unknown // CS1633 diff --git a/docs/csharp/misc/cs1634.md b/docs/csharp/misc/cs1634.md index bc77ad5debc83..2e976d95f57c8 100644 --- a/docs/csharp/misc/cs1634.md +++ b/docs/csharp/misc/cs1634.md @@ -22,7 +22,7 @@ Expected disable or restore ## Example The following sample generates CS1634: -``` +```csharp // CS1634.cs // compile with: /W:1 diff --git a/docs/csharp/misc/cs1635.md b/docs/csharp/misc/cs1635.md index ba21937d671b2..26ba6b4b6c44b 100644 --- a/docs/csharp/misc/cs1635.md +++ b/docs/csharp/misc/cs1635.md @@ -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 diff --git a/docs/csharp/misc/cs1637.md b/docs/csharp/misc/cs1637.md index 2f18f2201d7db..0844cc8624736 100644 --- a/docs/csharp/misc/cs1637.md +++ b/docs/csharp/misc/cs1637.md @@ -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; diff --git a/docs/csharp/misc/cs1638.md b/docs/csharp/misc/cs1638.md index 13bc12dcc32fa..5f6af5f9489f1 100644 --- a/docs/csharp/misc/cs1638.md +++ b/docs/csharp/misc/cs1638.md @@ -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) diff --git a/docs/csharp/misc/cs1641.md b/docs/csharp/misc/cs1641.md index c0b39e7f3cde4..d9c832f632122 100644 --- a/docs/csharp/misc/cs1641.md +++ b/docs/csharp/misc/cs1641.md @@ -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 { diff --git a/docs/csharp/misc/cs1642.md b/docs/csharp/misc/cs1642.md index 4a585c4377e3e..6bbd8bc1633b4 100644 --- a/docs/csharp/misc/cs1642.md +++ b/docs/csharp/misc/cs1642.md @@ -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 diff --git a/docs/csharp/misc/cs1643.md b/docs/csharp/misc/cs1643.md index a82ce4181dc18..46aa1d04fbcb1 100644 --- a/docs/csharp/misc/cs1643.md +++ b/docs/csharp/misc/cs1643.md @@ -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(); diff --git a/docs/csharp/misc/cs1645.md b/docs/csharp/misc/cs1645.md index a7d558145e387..e7f3502b1e5e0 100644 --- a/docs/csharp/misc/cs1645.md +++ b/docs/csharp/misc/cs1645.md @@ -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)] diff --git a/docs/csharp/misc/cs1646.md b/docs/csharp/misc/cs1646.md index 294bad36228cd..12eabdf104776 100644 --- a/docs/csharp/misc/cs1646.md +++ b/docs/csharp/misc/cs1646.md @@ -21,7 +21,7 @@ Keyword, identifier, or string expected after verbatim specifier: @ The following sample generates CS1646: -``` +```csharp // CS1646 class C { diff --git a/docs/csharp/misc/cs1648.md b/docs/csharp/misc/cs1648.md index b9a7e6ae81425..e514c9d2494d2 100644 --- a/docs/csharp/misc/cs1648.md +++ b/docs/csharp/misc/cs1648.md @@ -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 { diff --git a/docs/csharp/misc/cs1649.md b/docs/csharp/misc/cs1649.md index e0762c6f25c49..04b6152806d21 100644 --- a/docs/csharp/misc/cs1649.md +++ b/docs/csharp/misc/cs1649.md @@ -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 { diff --git a/docs/csharp/misc/cs1650.md b/docs/csharp/misc/cs1650.md index 49eb4005366fd..08e40211e7531 100644 --- a/docs/csharp/misc/cs1650.md +++ b/docs/csharp/misc/cs1650.md @@ -19,7 +19,7 @@ Fields of static readonly field 'identifier' cannot be assigned to (except in a This error occurs when you attempt to modify a member of a field which is readonly and static where it is not allowed to be modified. To resolve this error, limit assignments to readonly fields to the constructor or variable initializer, or remove the `readonly` keyword from the declaration of the field. -``` +```csharp // CS1650.cs public struct Inner { diff --git a/docs/csharp/misc/cs1651.md b/docs/csharp/misc/cs1651.md index 321aaab632337..c2bd5581bc97f 100644 --- a/docs/csharp/misc/cs1651.md +++ b/docs/csharp/misc/cs1651.md @@ -21,7 +21,7 @@ Fields of static readonly field 'identifier' cannot be passed ref or out (except The following sample generates CS1651: -``` +```csharp // CS1651.cs public struct Inner { diff --git a/docs/csharp/misc/cs1654.md b/docs/csharp/misc/cs1654.md index a5b159b272042..18d7d08431fb2 100644 --- a/docs/csharp/misc/cs1654.md +++ b/docs/csharp/misc/cs1654.md @@ -24,7 +24,7 @@ Cannot modify members of 'variable' because it is a 'read-only variable type' ## Example The following example generates error CS1654 because `Book` is a `struct`. To fix the error, change the `struct` to a [class](../../csharp/language-reference/keywords/class.md). -``` +```csharp using System.Collections.Generic; using System.Text; diff --git a/docs/csharp/misc/cs1655.md b/docs/csharp/misc/cs1655.md index a7e7150a03059..1c55a6a80c89d 100644 --- a/docs/csharp/misc/cs1655.md +++ b/docs/csharp/misc/cs1655.md @@ -21,7 +21,7 @@ Cannot pass fields of 'variable' as a ref or out argument because it is a 'reado The following sample generates CS1655: -``` +```csharp // CS1655.cs struct S { diff --git a/docs/csharp/misc/cs1657.md b/docs/csharp/misc/cs1657.md index 8c53e0837d2a6..4f48f7769e204 100644 --- a/docs/csharp/misc/cs1657.md +++ b/docs/csharp/misc/cs1657.md @@ -22,7 +22,7 @@ Cannot pass 'parameter' as a ref or out argument because 'reason'' ## Example The following sample generates CS1657: -``` +```csharp // CS1657.cs using System; class C : IDisposable @@ -49,7 +49,7 @@ class CMain ## Example The following code illustrates the same problem in a `fixed` statement: -``` +```csharp // CS1657b.cs // compile with: /unsafe unsafe class C diff --git a/docs/csharp/misc/cs1660.md b/docs/csharp/misc/cs1660.md index fbb874dc0e045..1a2c6953aa249 100644 --- a/docs/csharp/misc/cs1660.md +++ b/docs/csharp/misc/cs1660.md @@ -21,7 +21,7 @@ Cannot convert anonymous method block to type 'type' because it is not a delegat The following sample generates CS1660: -``` +```csharp // CS1660.cs delegate int MyDelegate(); class C {