@@ -57,7 +57,7 @@ Delegate types in C# are name equivalent, not structurally equivalent.
57
57
58
58
> * Example* :
59
59
>
60
- > <!-- Example: {template:"standalone-lib", name:"DelegateDeclarations"} -->
60
+ > <!-- Example: {template:"standalone-lib-without-using ", name:"DelegateDeclarations"} -->
61
61
> ``` csharp
62
62
> delegate int D1 (int i , double d );
63
63
> delegate int D2 (int c , double d );
@@ -92,7 +92,7 @@ This definition of consistency allows covariance in return type and contravarian
92
92
93
93
> *Example *:
94
94
>
95
- > < ! -- IncompleteExample : {template : " standalone-lib" , name : " DelegateCompatibility1" , replaceEllipsis : true , expectedErrors : [ " x " , " x " ], expectedWarnings : [ " x " , " x " ]} -- >
95
+ > < ! -- Example : {template : " standalone-lib-without-using " , name : " DelegateCompatibility1" , replaceEllipsis : true , customEllipsisReplacements : [ " return default; " , " return default; " , " return; " , " return default; " , " return; " , " return default; " , " return default; " ]} -- >
96
96
> ```csharp
97
97
> delegate int D1(int i , double d );
98
98
> delegate int D2 (int c , double d );
@@ -122,7 +122,7 @@ This definition of consistency allows covariance in return type and contravarian
122
122
<!-- markdownlint-enable MD028 -->
123
123
> *Example*:
124
124
>
125
- > <!-- IncompleteExample : {template : " standalone-lib" , name : " DelegateCompatibility2" , replaceEllipsis : true , expectedOutput : [ " x " , " x " , " x " ], expectedErrors : [ " x " , " x " ], expectedWarnings : [ " x " , " x " ] } -- >
125
+ > <!-- Example : {template : " standalone-lib-without-using " , name : " DelegateCompatibility2" , replaceEllipsis : true , customEllipsisReplacements : [ " return default; " , " return default; " ] } -- >
126
126
> ```csharp
127
127
> delegate bool Predicate<T>(T value );
128
128
>
@@ -173,7 +173,7 @@ An instance of a delegate is created by a *delegate_creation_expression* ([§11.
173
173
174
174
> * Example * :
175
175
>
176
- > < ! -- Example : {template : " standalone-console" , name : " DelegateInstantiation1" , replaceEllipsis : true } -- >
176
+ > < ! -- Example : {template : " standalone-console-without-using " , name : " DelegateInstantiation1" , replaceEllipsis : true } -- >
177
177
> ```csharp
178
178
> delegate void D (int x );
179
179
>
@@ -205,7 +205,7 @@ Delegates are combined using the binary `+` ([§11.9.5](expressions.md#1195-add
205
205
206
206
> *Example *: The following example shows the instantiation of a number of delegates , and their corresponding invocation lists :
207
207
>
208
- > <!-- Example : {template :"standalone -console ", name :"DelegateInstantiation2 ", replaceEllipsis :true } -->
208
+ > <!-- Example : {template :"standalone -console - without - using ", name :"DelegateInstantiation2 ", replaceEllipsis :true } -->
209
209
> ```csharp
210
210
> delegate void D (int x );
211
211
>
@@ -261,8 +261,6 @@ Attempting to invoke a delegate instance whose value is `null` results in an exc
261
261
>
262
262
> <!-- Example: {template:"standalone-console", name:"DelegateInvocation", inferOutput:true} -- >
263
263
> ```csharp
264
- > using System ;
265
- >
266
264
> delegate void D (int x );
267
265
>
268
266
> class C
0 commit comments