Skip to content

Commit c536a34

Browse files
authored
revise example metadata (#714)
1 parent 48b27c4 commit c536a34

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

standard/types.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ Like any other instance constructor, the default constructor of a value type is
225225
<!-- markdownlint-enable MD028 -->
226226
> *Example*: In the code below, variables `i`, `j` and `k` are all initialized to zero.
227227
>
228-
> <!-- Example: {template:"standalone-lib", name:"DefaultConstructors", ignoredWarnings:["CS0219"]} -->
228+
> <!-- Example: {template:"standalone-lib-without-using", name:"DefaultConstructors", ignoredWarnings:["CS0219"]} -->
229229
> ```csharp
230230
> class A
231231
> {
@@ -270,7 +270,7 @@ Because a simple type aliases a struct type, every simple type has members.
270270
271271
> *Example*: `int` has the members declared in `System.Int32` and the members inherited from `System.Object`, and the following statements are permitted:
272272
>
273-
> <!-- Example: {template:"standalone-console", name:"SimpleTypes"} -->
273+
> <!-- Example: {template:"standalone-console-without-using", name:"SimpleTypes"} -->
274274
> ```csharp
275275
> int i = int.MaxValue; // System.Int32.MaxValue constant
276276
> 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
423423
424424
> *Example*:
425425
>
426-
> <!-- Example: {template:"standalone-lib", name:"ConstructedTypes1", replaceEllipsis:true, ignoredWarnings:["CS0169"]} -->
426+
> <!-- Example: {template:"standalone-lib-without-using", name:"ConstructedTypes1", replaceEllipsis:true, ignoredWarnings:["CS0169"]} -->
427427
> ```csharp
428428
> namespace Widgets
429429
> {
@@ -449,7 +449,7 @@ The detailed rules for name lookup in the *namespace_or_type_name* productions i
449449
450450
> *Example*:
451451
>
452-
> <!-- Example: {template:"standalone-lib", name:"ConstructedTypes2", replaceEllipsis:true, ignoredWarnings:["CS0649"]} -->
452+
> <!-- Example: {template:"standalone-lib-without-using", name:"ConstructedTypes2", replaceEllipsis:true, ignoredWarnings:["CS0649"]} -->
453453
> ```csharp
454454
> class Outer<T>
455455
> {
@@ -533,7 +533,7 @@ Since type parameters are not inherited, constraints are never inherited either.
533533
534534
> *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`.
535535
>
536-
> <!-- IncompleteExample: {template:"standalone-lib", name:"SatisfyingConstraints", replaceEllipsis:true]} -->
536+
> <!-- Example: {template:"standalone-lib", name:"SatisfyingConstraints", replaceEllipsis:true} -->
537537
> ```csharp
538538
> class B<T> where T: IEnumerable {...}
539539
> 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
577577

578578
> *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>>`:
579579
>
580-
> <!-- IncompleteExample: {template:"standalone-console", name:"ExpressionTreeTypes", expectedOutput:["x", "x", "x"],expectedErrors:["x","x"],expectedWarnings:["x","x"]} -->
580+
> <!-- Example: {template:"standalone-console", name:"ExpressionTreeTypes"} -->
581581
> ```csharp
582582
> Func<int,int> del = x => x + 1; // Code
583583
> Expression<Func<int,int>> exp = x => x + 1; // Data

0 commit comments

Comments
 (0)