Use file-scoped namespaces (#68295)
authorJonathan <vanillajonathan@users.noreply.github.com>
Thu, 28 Apr 2022 20:35:59 +0000 (22:35 +0200)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 20:35:59 +0000 (14:35 -0600)
Use modern file-scoped namespaces instead of legacy namespaces

.github/ISSUE_TEMPLATE/02_api_proposal.yml

index 541bcf5..32878e1 100644 (file)
@@ -25,13 +25,12 @@ body:
         You may find the [Framework Design Guidelines](https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/framework-design-guidelines-digest.md) helpful.
       placeholder: API declaration (no method bodies)
       value: |
-        ```C#
-        namespace System.Collections.Generic
+        ```csharp
+        namespace System.Collections.Generic;
+
+        public class MyFancyCollection<T> : IEnumerable<T>
         {
-            public class MyFancyCollection<T> : IEnumerable<T>
-            {
-                public void Fancy(T item);
-            }
+            public void Fancy(T item);
         }
         ```
     validations:
@@ -44,7 +43,7 @@ body:
         Please provide code examples that highlight how the proposed API additions are meant to be consumed. This will help suggest whether the API has the right shape to be functional, performant and usable.
       placeholder: API usage
       value: |
-        ```C#
+        ```csharp
         // Fancy the value
         var c = new MyFancyCollection<int>();
         c.Fancy(42);