Skip to content

Commit d970c42

Browse files
authored
Generic attributes is C# 11 (dotnet#31787)
The generic attributes spec moved from C# 10 to C# 11. (It was a preview feature in the C# 10 timeframe).
1 parent 9d51be6 commit d970c42

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.openpublishing.redirection.csharp.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"source_path_from_root": "/_csharplang/proposals/csharp-7.3/leading-digit-separator.md",
2929
"redirect_url": "/dotnet/csharp/language-reference/language-specification/lexical-structure#6453-integer-literals"
3030
},
31+
{
32+
"source_path_from_root": "/_csharplang/proposals/csharp-10.0/generic-attributes.md",
33+
"redirect_url": "/dotnet/csharp/language-reference/proposals/csharp-11.0/generic-attributes"
34+
},
3135
{
3236
"source_path_from_root": "/docs/csharp/basic-types.md",
3337
"redirect_url": "/dotnet/csharp/fundamentals/types"

docfx.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,10 +675,10 @@
675675
"_csharplang/proposals/csharp-10.0/lambda-attributes.md": "Lambda attributes",
676676
"_csharplang/proposals/csharp-10.0/caller-argument-expression.md": "Caller argument expression",
677677
"_csharplang/proposals/csharp-10.0/enhanced-line-directives.md": "Enhanced #line directives",
678-
"_csharplang/proposals/csharp-10.0/generic-attributes.md": "Generic attributes",
679678
"_csharplang/proposals/csharp-10.0/improved-definite-assignment.md": "Improved definite assignment analysis",
680679
"_csharplang/proposals/csharp-10.0/async-method-builders.md": "AsyncMethodBuilder override",
681680

681+
"_csharplang/proposals/csharp-11.0/generic-attributes.md": "Generic attributes",
682682
"_csharplang/proposals/csharp-11.0/auto-default-structs.md": "Auto-default struct",
683683
"_csharplang/proposals/csharp-11.0/checked-user-defined-operators.md": "Checked user defined operators",
684684
"_csharplang/proposals/csharp-11.0/extended-nameof-scope.md": "Extended nameof parameter scope",
@@ -813,10 +813,10 @@
813813
"_csharplang/proposals/csharp-10.0/lambda-attributes.md": "This feature specification describes the syntax enhancements to declare attributes on lambda expressions.",
814814
"_csharplang/proposals/csharp-10.0/caller-argument-expression.md": "This feature specification describes attributes that can be used to enable the compiler to convert a caller argument expression into text. This is primarily used for debugging and testing scenarios.",
815815
"_csharplang/proposals/csharp-10.0/enhanced-line-directives.md": "This feature specification describes updates to the #line directive. These enhancements support scenarios like Razor where the Razor engine wants more control over the line number so that it maps to your source rather than the generated file.",
816-
"_csharplang/proposals/csharp-10.0/generic-attributes.md": "This feature specification describes generic attributes, where a generic class may derive from 'System.Attribute'.",
817816
"_csharplang/proposals/csharp-10.0/improved-definite-assignment.md": "This feature specification describes updates to the rules for definite assignment analysis. The result is more accurate warnings for when a variable may not be definitely assigned, or may not be null.",
818817
"_csharplang/proposals/csharp-10.0/async-method-builders.md": "This feature specification describes new rules to enable types to override the default AsyncMethodBuilder. This will be used by the runtime for performance improvements.",
819818

819+
"_csharplang/proposals/csharp-11.0/generic-attributes.md": "This feature specification describes generic attributes, where a generic class may derive from 'System.Attribute'.",
820820
"_csharplang/proposals/csharp-11.0/auto-default-structs.md": "This feature updates the rules for struct initialization and default values. This feature standardizes the behavior for default struct values and newly initialized structs.",
821821
"_csharplang/proposals/csharp-11.0/checked-user-defined-operators.md": "This feature enables checked and unchecked alternatives for some operators.",
822822
"_csharplang/proposals/csharp-11.0/extended-nameof-scope.md": "This feature enables the nameof expression to be used with parameter names in a method declaration.",

docs/csharp/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,8 +1470,6 @@ items:
14701470
href: ../../_csharplang/proposals/csharp-10.0/caller-argument-expression.md
14711471
- name: "Enhanced #line directives"
14721472
href: ../../_csharplang/proposals/csharp-10.0/enhanced-line-directives.md
1473-
- name: Generic attributes
1474-
href: ../../_csharplang/proposals/csharp-10.0/generic-attributes.md
14751473
- name: Improved definite assignment analysis
14761474
href: ../../_csharplang/proposals/csharp-10.0/improved-definite-assignment.md
14771475
- name: AsyncMethodBuilder override
@@ -1508,3 +1506,5 @@ items:
15081506
href: ../../_csharplang/proposals/csharp-11.0/extended-nameof-scope.md
15091507
- name: File local types
15101508
href: ../../_csharplang/proposals/csharp-11.0/file-local-types.md
1509+
- name: Generic attributes
1510+
href: ../../_csharplang/proposals/csharp-11.0/generic-attributes.md

0 commit comments

Comments
 (0)