Skip to content

Commit 832d7df

Browse files
authored
Swap suppression sections
1 parent 14f48f2 commit 832d7df

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/fundamentals/syslib-diagnostics/experimental-overview.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ The following table provides an index to the `SYSLIB5XXX` experimental APIs in .
2929

3030
Using an experimental feature gives you the opportunity to submit feedback on the API shape and functionality before the feature is marked as stable and fully supported. But using the feature produces a warning from the compiler. When you suppress the warning, you acknowledge that the API shape or functionality might change in the next major release. The API might even be removed. You can suppress the warning through a `#pragma` directive in code or a `<NoWarn>` project setting.
3131

32-
To suppress the warnings in code:
33-
34-
```csharp
35-
// Disable the warning.
36-
#pragma warning disable SYSLIB5001
37-
38-
// Code that uses an experimental API that produces the diagnostic SYSLIB5001
39-
//...
40-
41-
// Re-enable the warning.
42-
#pragma warning restore SYSLIB5001
43-
```
44-
4532
To suppress the warnings in a project file:
4633

4734
```xml
@@ -59,6 +46,19 @@ To suppress the warnings in a project file:
5946
</Project>
6047
```
6148

49+
To suppress the warnings in code:
50+
51+
```csharp
52+
// Disable the warning.
53+
#pragma warning disable SYSLIB5001
54+
55+
// Code that uses an experimental API that produces the diagnostic SYSLIB5001
56+
//...
57+
58+
// Re-enable the warning.
59+
#pragma warning restore SYSLIB5001
60+
```
61+
6262
## See also
6363

6464
- [Preview APIs](../apicompat/preview-apis.md)

0 commit comments

Comments
 (0)