@@ -225,7 +225,7 @@ Like any other instance constructor, the default constructor of a value type is
225
225
<!-- markdownlint-enable MD028 -->
226
226
> * Example* : In the code below, variables ` i ` , ` j ` and ` k ` are all initialized to zero.
227
227
>
228
- > <!-- Example: {template:"standalone-lib", name:"DefaultConstructors", ignoredWarnings:["CS0219"]} -->
228
+ > <!-- Example: {template:"standalone-lib-without-using ", name:"DefaultConstructors", ignoredWarnings:["CS0219"]} -->
229
229
> ``` csharp
230
230
> class A
231
231
> {
@@ -270,7 +270,7 @@ Because a simple type aliases a struct type, every simple type has members.
270
270
271
271
> *Example*: `int ` has the members declared in `System .Int32 ` and the members inherited from `System .Object `, and the following statements are permitted :
272
272
>
273
- > <!-- Example : {template :"standalone -console ", name :"SimpleTypes "} -->
273
+ > <!-- Example : {template :"standalone -console - without - using ", name :"SimpleTypes "} -->
274
274
> ```csharp
275
275
> int i = int .MaxValue ; // System.Int32.MaxValue constant
276
276
> string s = i .ToString (); // System.Int32.ToString() instance method
@@ -423,7 +423,7 @@ When a *namespace_or_type_name* is evaluated, only generic types with the correc
423
423
424
424
> *Example *:
425
425
>
426
- > <!-- Example : {template :"standalone -lib ", name :"ConstructedTypes1 ", replaceEllipsis :true , ignoredWarnings :["CS0169"]} -->
426
+ > <!-- Example : {template :"standalone -lib - without - using ", name :"ConstructedTypes1 ", replaceEllipsis :true , ignoredWarnings :["CS0169"]} -->
427
427
> ```csharp
428
428
> namespace Widgets
429
429
> {
@@ -449,7 +449,7 @@ The detailed rules for name lookup in the *namespace_or_type_name* productions i
449
449
450
450
> * Example * :
451
451
>
452
- > < ! -- Example : {template : " standalone-lib" , name : " ConstructedTypes2" , replaceEllipsis : true , ignoredWarnings : [" CS0649" ]} -- >
452
+ > < ! -- Example : {template : " standalone-lib-without-using " , name : " ConstructedTypes2" , replaceEllipsis : true , ignoredWarnings : [" CS0649" ]} -- >
453
453
> ```csharp
454
454
> class Outer <T >
455
455
> {
@@ -533,7 +533,7 @@ Since type parameters are not inherited, constraints are never inherited either.
533
533
534
534
> *Example *: In the following , `D ` needs to specify the constraint on its type parameter `T ` so that `T ` satisfies the constraint imposed by the base `class ` `B <T >`. In contrast , `class ` `E ` need not specify a constraint , because `List <T >` implements `IEnumerable ` for any `T `.
535
535
>
536
- > <!-- IncompleteExample : {template :"standalone -lib ", name :"SatisfyingConstraints ", replaceEllipsis :true ] } -->
536
+ > <!-- Example : {template :"standalone -lib ", name :"SatisfyingConstraints ", replaceEllipsis :true } -->
537
537
> ```csharp
538
538
> class B <T > where T : IEnumerable {...}
539
539
> class D <T > : B <T > where T : IEnumerable {...}
@@ -577,7 +577,7 @@ If a conversion exists from a lambda expression to a delegate type `D`, a conver
577
577
578
578
> * Example* : The following program represents a lambda expression both as executable code and as an expression tree. Because a conversion exists to ` Func<int,int> ` , a conversion also exists to ` Expression<Func<int,int>> ` :
579
579
>
580
- > <!-- IncompleteExample : {template:"standalone-console", name:"ExpressionTreeTypes", expectedOutput:["x", "x", "x"],expectedErrors:["x","x"],expectedWarnings:["x","x"] } -->
580
+ > <!-- Example : {template:"standalone-console", name:"ExpressionTreeTypes"} -->
581
581
> ``` csharp
582
582
> Func < int ,int > del = x => x + 1 ; // Code
583
583
> Expression < Func < int ,int >> exp = x => x + 1 ; // Data
0 commit comments