From f1ac4897d05f1ebf7fd7df0c5c3543825796857b Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Fri, 14 Oct 2022 16:02:18 -0400 Subject: [PATCH] Generic attributes is C# 11 The generic attributes spec moved from C# 10 to C# 11. (It was a preview feature in the C# 10 timeframe). --- .openpublishing.redirection.csharp.json | 4 ++++ docfx.json | 4 ++-- docs/csharp/toc.yml | 4 ++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.openpublishing.redirection.csharp.json b/.openpublishing.redirection.csharp.json index b19448db6b299..d368ca6c03ded 100644 --- a/.openpublishing.redirection.csharp.json +++ b/.openpublishing.redirection.csharp.json @@ -28,6 +28,10 @@ "source_path_from_root": "/_csharplang/proposals/csharp-7.3/leading-digit-separator.md", "redirect_url": "/dotnet/csharp/language-reference/language-specification/lexical-structure#6453-integer-literals" }, + { + "source_path_from_root": "/_csharplang/proposals/csharp-10.0/generic-attributes.md", + "redirect_url": "/dotnet/csharp/language-reference/proposals/csharp-11.0/generic-attributes" + }, { "source_path_from_root": "/docs/csharp/basic-types.md", "redirect_url": "/dotnet/csharp/fundamentals/types" diff --git a/docfx.json b/docfx.json index 5ff6267627163..9ead6bc092d97 100644 --- a/docfx.json +++ b/docfx.json @@ -675,10 +675,10 @@ "_csharplang/proposals/csharp-10.0/lambda-attributes.md": "Lambda attributes", "_csharplang/proposals/csharp-10.0/caller-argument-expression.md": "Caller argument expression", "_csharplang/proposals/csharp-10.0/enhanced-line-directives.md": "Enhanced #line directives", - "_csharplang/proposals/csharp-10.0/generic-attributes.md": "Generic attributes", "_csharplang/proposals/csharp-10.0/improved-definite-assignment.md": "Improved definite assignment analysis", "_csharplang/proposals/csharp-10.0/async-method-builders.md": "AsyncMethodBuilder override", + "_csharplang/proposals/csharp-11.0/generic-attributes.md": "Generic attributes", "_csharplang/proposals/csharp-11.0/auto-default-structs.md": "Auto-default struct", "_csharplang/proposals/csharp-11.0/checked-user-defined-operators.md": "Checked user defined operators", "_csharplang/proposals/csharp-11.0/extended-nameof-scope.md": "Extended nameof parameter scope", @@ -813,10 +813,10 @@ "_csharplang/proposals/csharp-10.0/lambda-attributes.md": "This feature specification describes the syntax enhancements to declare attributes on lambda expressions.", "_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.", "_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.", - "_csharplang/proposals/csharp-10.0/generic-attributes.md": "This feature specification describes generic attributes, where a generic class may derive from 'System.Attribute'.", "_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.", "_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.", + "_csharplang/proposals/csharp-11.0/generic-attributes.md": "This feature specification describes generic attributes, where a generic class may derive from 'System.Attribute'.", "_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.", "_csharplang/proposals/csharp-11.0/checked-user-defined-operators.md": "This feature enables checked and unchecked alternatives for some operators.", "_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.", diff --git a/docs/csharp/toc.yml b/docs/csharp/toc.yml index 291178eb2661b..42951522f1fc4 100644 --- a/docs/csharp/toc.yml +++ b/docs/csharp/toc.yml @@ -1470,8 +1470,6 @@ items: href: ../../_csharplang/proposals/csharp-10.0/caller-argument-expression.md - name: "Enhanced #line directives" href: ../../_csharplang/proposals/csharp-10.0/enhanced-line-directives.md - - name: Generic attributes - href: ../../_csharplang/proposals/csharp-10.0/generic-attributes.md - name: Improved definite assignment analysis href: ../../_csharplang/proposals/csharp-10.0/improved-definite-assignment.md - name: AsyncMethodBuilder override @@ -1508,3 +1506,5 @@ items: href: ../../_csharplang/proposals/csharp-11.0/extended-nameof-scope.md - name: File local types href: ../../_csharplang/proposals/csharp-11.0/file-local-types.md + - name: Generic attributes + href: ../../_csharplang/proposals/csharp-11.0/generic-attributes.md