Skip to content

Commit f2ff5b3

Browse files
authored
revise example metadata (#708)
1 parent 6a9ce98 commit f2ff5b3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

standard/enums.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ An enum declaration that does not explicitly declare an underlying type has an u
5252

5353
> *Example*: The example
5454
>
55-
> <!-- Example: {template:"standalone-lib", name:"ColorEnumWithInt64UnderlyingType"} -->
55+
> <!-- Example: {template:"standalone-lib-without-using", name:"ColorEnumWithInt64UnderlyingType"} -->
5656
> ```csharp
5757
> enum Color : long
5858
> {
@@ -114,7 +114,7 @@ Each enum member has an associated constant value. The type of this value is the
114114
115115
> *Example*: The example
116116
>
117-
> <!-- Example: {template:"standalone-lib", name:"EnumWithUInt32UnderlyingTypeAndNegativeValues", expectedErrors:["CS0031","CS0031","CS0031"]} -->
117+
> <!-- Example: {template:"standalone-lib-without-using", name:"EnumWithUInt32UnderlyingTypeAndNegativeValues", expectedErrors:["CS0031","CS0031","CS0031"]} -->
118118
> ```csharp
119119
> enum Color: uint
120120
> {
@@ -132,7 +132,7 @@ Multiple enum members may share the same associated value.
132132
133133
> *Example*: The example
134134
>
135-
> <!-- Example: {template:"standalone-lib", name:"EnumWithDuplicateValues"} -->
135+
> <!-- Example: {template:"standalone-lib-without-using", name:"EnumWithDuplicateValues"} -->
136136
> ```csharp
137137
> enum Color
138138
> {
@@ -154,9 +154,8 @@ The associated value of an enum member is assigned either implicitly or explicit
154154
155155
> *Example*: The example
156156
>
157-
> <!-- Example: {template:"standalone-console", name:"PrintingEnumValues", inferOutput:true} -->
157+
> <!-- Example: {template:"standalone-console-without-using", name:"PrintingEnumValues", inferOutput:true} -->
158158
> ```csharp
159-
> using System;
160159
> enum Color
161160
> {
162161
> Red,
@@ -210,7 +209,7 @@ The associated value of an enum member may not, directly or indirectly, use the
210209
211210
> *Example*: The example
212211
>
213-
> <!-- Example: {template:"standalone-lib", name:"EnumWithCircularValues", expectedErrors:["CS0110"]} -->
212+
> <!-- Example: {template:"standalone-lib-without-using", name:"EnumWithCircularValues", expectedErrors:["CS0110"]} -->
214213
> ```csharp
215214
> enum Circular
216215
> {

0 commit comments

Comments
 (0)