@@ -698,7 +698,7 @@ Nested types can be declared in multiple parts by using the `partial` modifier.
698698>
699699> When the two parts above are compiled together , the resulting code behaves as if the class had been written as a single unit, as follows:
700700>
701- > <!-- Example : {template :"standalone -lib -without -using ", name :"PartialDeclarations2 ", replaceEllipsis :true , additionalFiles :["Order.cs"], expectedWarnings :["CS0169","CS0169","CS0169","CS0649"]} -->
701+ > <!-- Example : {template :"standalone -lib -without -using ", name :"PartialDeclarations2 ", replaceEllipsis :true , expectedWarnings :["CS0169","CS0169","CS0169","CS0649"], additionalFiles :["Order.cs "]} -->
702702> ```csharp
703703> public class Customer
704704> {
@@ -837,7 +837,7 @@ The non-inherited members of a constructed type are obtained by substituting, fo
837837
838838> *Example*: Given the generic class declaration
839839>
840- > <!-- Example: {template:"standalone-lib-without-using", name:"MembersOfConstructedTypes", replaceEllipsis:true, customEllipsisReplacements: [null, "return default;" , null, " return 0 ;" ], expectedWarnings:[" CS0649 " ]} -->
840+ > <!-- Example: {template:"standalone-lib-without-using", name:"MembersOfConstructedTypes", replaceEllipsis:true, customEllipsisReplacements:[null,"return default;" ,null," return 0 ;" ], expectedWarnings:[" CS0649 " ]} -->
841841> ```csharp
842842> class Gen <T ,U >
843843> {
@@ -3308,8 +3308,8 @@ Unlike public fields, properties provide a separation between an object’s inte
33083308> this .caption = caption ;
33093309> }
33103310>
3311- > public int X => location .x ;
3312- > public int Y => location .y ;
3311+ > public int X => location .X ;
3312+ > public int Y => location .Y ;
33133313> public Point Location => location ;
33143314> public string Caption => caption ;
33153315> }
@@ -3774,7 +3774,7 @@ In an operation of the form `x += y` or `x –= y`, when `x` is an event the
37743774
37753775> * Example* : The following example shows how event handlers are attached to instances of the ` Button ` class:
37763776>
3777- > <!-- Example: {template:"standalone-lib-without-using", name:"Events", replaceEllipsis:true, additionalFiles:["Control.cs","Graphics.cs","Rectangle.cs","Point.cs","Form.cs"], expectedWarnings:["CS0067 "]} -->
3777+ > <!-- Example: {template:"standalone-lib-without-using", name:"Events", replaceEllipsis:true, expectedWarnings:["CS0067"], additionalFiles:["Control.cs","Graphics.cs","Rectangle.cs","Point.cs","Form.cs"]} -->
37783778> ``` csharp
37793779> public delegate void EventHandler (object sender , EventArgs e );
37803780>
@@ -3861,7 +3861,7 @@ When compiling a field-like event, the compiler automatically creates storage to
38613861
38623862> *Note*: Thus, an instance event declaration of the form:
38633863>
3864- > <!-- Example: {template:"standalone-lib-without-using", name:"FieldlikeEvents2", additionalFiles :["D.cs "], expectedWarnings :["CS0067 "]} -- >
3864+ > <!-- Example: {template:"standalone-lib-without-using", name:"FieldlikeEvents2", expectedWarnings :["CS0067 "], additionalFiles :["D.cs "]} -- >
38653865> ```csharp
38663866> class X
38673867> {
@@ -3871,7 +3871,7 @@ When compiling a field-like event, the compiler automatically creates storage to
38713871>
38723872> shall be compiled to something equivalent to :
38733873>
3874- > < ! -- Example : {template : " standalone-lib-without-using" , name : " FieldlikeEvents3" , additionalFiles : [" D.cs " ], expectedWarnings : [" CS0169 " ]} -- >
3874+ > < ! -- Example : {template : " standalone-lib-without-using" , name : " FieldlikeEvents3" , expectedWarnings : [" CS0169 " ], additionalFiles : [" D.cs " ]} -- >
38753875> ```csharp
38763876> class X
38773877> {
@@ -4296,7 +4296,7 @@ The `true` and `false` unary operators require pair-wise declaration. A compile-
42964296
42974297> * Example* : The following example shows an implementation and subsequent usage of operator++ for an integer vector class:
42984298>
4299- > <!-- Example: {template:"standalone-console-without-using", name:"UnaryOperators", replaceEllipsis:true, customEllipsisReplacements:[null,"get { return 0; } ","get { return 0; } set {}" ]} -->
4299+ > <!-- Example: {template:"standalone-console-without-using", name:"UnaryOperators", replaceEllipsis:true, customEllipsisReplacements:[null,"return 0;","return 0;",null ]} -->
43004300> ``` csharp
43014301> public class IntVector
43024302> {
@@ -4393,7 +4393,7 @@ It is not possible to directly redefine a pre-defined conversion. Thus, conversi
43934393
43944394> *Example *:
43954395>
4396- > <!-- Example : {template :"standalone -lib -without -using ", name :"ConversionOperators2 ", replaceEllipsis :true , customEllipsisReplacements :["return default;", "return default;"]} -->
4396+ > <!-- Example : {template :"standalone -lib -without -using ", name :"ConversionOperators2 ", replaceEllipsis :true , customEllipsisReplacements :["return default;","return default;"]} -->
43974397> ```csharp
43984398> struct Convertible <T >
43994399> {
@@ -4417,7 +4417,7 @@ For all types but `object`, the operators declared by the `Convertible<T>` type
44174417
44184418> * Example * :
44194419>
4420- > < ! -- Example : {template : " standalone-console-without-using" , name : " ConversionOperators3" , additionalFiles : [" ConvertibleT.cs " ], expectedErrors : [" CS0266 " ], expectedWarnings : [" CS8321 " ]} -- >
4420+ > < ! -- Example : {template : " standalone-console-without-using" , name : " ConversionOperators3" , expectedErrors : [" CS0266 " ], expectedWarnings : [" CS8321 " ], additionalFiles : [" ConvertibleT.cs " ]} -- >
44214421> ```csharp
44224422> void F (int i , Convertible < int > n )
44234423> {
@@ -4430,7 +4430,7 @@ For all types but `object`, the operators declared by the `Convertible<T>` type
44304430>
44314431> However , for type `object`, pre-defined conversions hide the user-defined conversions in all cases but one:
44324432>
4433- > <!-- Example: {template:"standalone-console-without-using", name:"ConversionOperators4", additionalFiles :["ConvertibleT.cs "], expectedWarnings :["CS8321 "]} -- >
4433+ > <!-- Example: {template:"standalone-console-without-using", name:"ConversionOperators4", expectedWarnings :["CS8321 "], additionalFiles :["ConvertibleT.cs "]} -- >
44344434> ```csharp
44354435> void F (object o , Convertible < object > n )
44364436> {
0 commit comments