From ffd8c49eeceb38ae993d4324dfe874a2fa4dbd23 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Sun, 5 Feb 2023 17:22:30 -0500 Subject: [PATCH] unpublish unmanaged constraint see dotnet/csharpstandard#244 The standard draft language has been updated to add the `unmanaged` generic constraint. Remove the feature speclet from the docs site. --- .openpublishing.redirection.csharp.json | 4 ++++ docfx.json | 6 ++---- docs/csharp/language-reference/index.md | 2 +- docs/csharp/toc.yml | 2 -- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.openpublishing.redirection.csharp.json b/.openpublishing.redirection.csharp.json index 8fa004ccf831a..aafaeb787345b 100644 --- a/.openpublishing.redirection.csharp.json +++ b/.openpublishing.redirection.csharp.json @@ -48,6 +48,10 @@ "source_path_from_root": "/redirections/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": "/redirections/proposals/csharp-7.3/blittable.md", + "redirect_url": "/dotnet/csharp/language-reference/language-specification/classes#1425-type-parameter-constraints" + }, { "source_path_from_root": "/redirections/proposals/csharp-10.0/generic-attributes.md", "redirect_url": "/dotnet/csharp/language-reference/proposals/csharp-11.0/generic-attributes" diff --git a/docfx.json b/docfx.json index 84841c52cd9b8..765cd5c78a0da 100644 --- a/docfx.json +++ b/docfx.json @@ -75,6 +75,7 @@ "csharp-7.3/enum-delegate-constraints.md", "csharp-7.3/improved-overload-candidates.md", "csharp-7.3/ref-loops.md", + "csharp-7.3/blittable.md", "csharp-8.0/alternative-interpolated-verbatim.md", "csharp-8.0/async-using.md", "csharp-8.0/constraints-in-overrides.md", @@ -128,8 +129,7 @@ "_csharplang/proposals/csharp-7.0/throw-expression.md", "_csharplang/proposals/csharp-7.1/target-typed-default.md", "_csharplang/proposals/csharp-7.2/readonly-struct.md", - "_csharplang/proposals/csharp-7.2/non-trailing-named-arguments.md", - "_csharplang/proposals/csharp-7.3/blittable.md" + "_csharplang/proposals/csharp-7.2/non-trailing-named-arguments.md" ] } }, @@ -637,7 +637,6 @@ "_csharplang/proposals/csharp-7.2/conditional-ref.md": "Conditional ref", "_csharplang/proposals/csharp-7.2/leading-separator.md": "Leading digit separator", - "_csharplang/proposals/csharp-7.3/blittable.md": "Unmanaged generic type constraints", "_csharplang/proposals/csharp-7.3/indexing-movable-fixed-fields.md": "Indexing fixed fields without pinning regardless of context", "_csharplang/proposals/csharp-7.3/pattern-based-fixed.md": "Pattern-based fixed statement", "_csharplang/proposals/csharp-7.3/ref-local-reassignment.md": "Ref local reassignment", @@ -772,7 +771,6 @@ "_csharplang/proposals/csharp-7.2/conditional-ref.md": "This feature specification describes the syntax enhancements for using 'ref' with '?:' expressions", "_csharplang/proposals/csharp-7.2/leading-separator.md": "This feature specification describes syntax enhancements to support a leading digit separator in numeric literals.", - "_csharplang/proposals/csharp-7.3/blittable.md": "This feature specification describes the 'unmanaged' generic type constraint. That forces the type argument to be an unmanaged type.", "_csharplang/proposals/csharp-7.3/indexing-movable-fixed-fields.md": "This feature specification describes syntax enhancement to support indexing fixed fields without pinning the memory, regardless of context.", "_csharplang/proposals/csharp-7.3/pattern-based-fixed.md": "This feature specification describes syntax enhancements to enable more types to be the target of a fixed statement.", "_csharplang/proposals/csharp-7.3/ref-local-reassignment.md": "This feature specification describes syntax enhancements that enable ref local variables to be assigned to refer to different storage after being initialized.", diff --git a/docs/csharp/language-reference/index.md b/docs/csharp/language-reference/index.md index d79c768f3889c..f7c4f2c279e8e 100644 --- a/docs/csharp/language-reference/index.md +++ b/docs/csharp/language-reference/index.md @@ -51,7 +51,7 @@ The features that have been implemented in C# versions after 6.0, including thos [C# 7.2 Specification Proposals](~/_csharplang/proposals/csharp-7.2/readonly-ref.md) C# 7.2 added a number of small features. You can pass arguments by readonly reference using the `in` keyword. There are a number of low-level changes to support compile-time safety for `Span` and related types. You can use named arguments where later arguments are positional, in some situations. The `private protected` access modifier enables you to specify that callers are limited to derived types implemented in the same assembly. The `?:` operator can resolve to a reference to a variable. You can also format hexadecimal and binary numbers using a leading digit separator. - [C# 7.3 Specification Proposals](~/_csharplang/proposals/csharp-7.3/blittable.md) + [C# 7.3 Specification Proposals](~/_csharplang/proposals/csharp-7.3/indexing-movable-fixed-fields.md) C# 7.3 is another point release that includes several small updates. You can use new constraints on generic type parameters. Other changes make it easier to work with `fixed` fields, including using [`stackalloc`](./operators/stackalloc.md) allocations. Local variables declared with the `ref` keyword may be reassigned to refer to new storage. You can place attributes on auto-implemented properties that target the compiler-generated backing field. Expression variables can be used in initializers. Tuples can be compared for equality (or inequality). There have also been some improvements to overload resolution. [C# 8.0 Specification Proposals](~/_csharplang/proposals/csharp-8.0/nullable-reference-types.md) diff --git a/docs/csharp/toc.yml b/docs/csharp/toc.yml index 0975be7fdcbbc..bde5da3993f81 100644 --- a/docs/csharp/toc.yml +++ b/docs/csharp/toc.yml @@ -1367,8 +1367,6 @@ items: href: ../../_csharplang/proposals/csharp-7.2/conditional-ref.md - name: C# 7.3 features items: - - name: Unmanaged generic type constraints - href: ../../_csharplang/proposals/csharp-7.3/blittable.md - name: Indexing `fixed` fields should not require pinning regardless of the movable/unmovable context href: ../../_csharplang/proposals/csharp-7.3/indexing-movable-fixed-fields.md - name: Pattern-based `fixed` statement