Skip to content

Commit 0cb040e

Browse files
authored
remove readonly speclet (#46568)
* remove readonly speclet The standard now includes the language for `readonly` instance members in `struct` types. See dotnet/csharpstandard#673. Remove the feature speclet from the learn site. * build error * warnings, part 2
1 parent 581b10e commit 0cb040e

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

.openpublishing.redirection.csharp.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@
116116
"source_path_from_root": "/redirections/proposals/csharp-8.0/nested-stackalloc.md",
117117
"redirect_url": "/dotnet/csharp/language-reference/language-specification/structs#164127-stackalloc"
118118
},
119+
{
120+
"source_path_from_root": "/redirections/proposals/csharp-8.0/readonly-instance-members.md",
121+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/structs#16411-properties"
122+
},
119123
{
120124
"source_path_from_root": "/redirections/proposals/csharp-9.0/nullable-reference-types-specification.md",
121125
"redirect_url": "/dotnet/csharp/language-reference/language-specification/types.md#893-nullable-reference-types"

docfx.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"csharp-8.0/nullable-reference-types.md",
8181
"csharp-8.0/nullable-reference-types-specification.md",
8282
"csharp-8.0/nested-stackalloc.md",
83+
"csharp-8.0/readonly-instance-members.md",
8384
"csharp-9.0/nullable-reference-types-specification.md",
8485
"csharp-9.0/nullable-constructor-analysis.md",
8586
"csharp-9.0/nullable-parameter-default-value-analysis.md",
@@ -621,7 +622,6 @@
621622
"_csharplang/proposals/csharp-8.0/ranges.md": "Ranges and indices",
622623
"_csharplang/proposals/csharp-8.0/using.md": "Pattern based using and using declarations",
623624
"_csharplang/proposals/csharp-8.0/null-coalescing-assignment.md": "Null coalescing assignment",
624-
"_csharplang/proposals/csharp-8.0/readonly-instance-members.md": "Readonly instance members",
625625
"_csharplang/proposals/csharp-9.0/covariant-returns.md": "Covariant return types",
626626
"_csharplang/proposals/csharp-9.0/extending-partial-methods.md": "Extending partial methods",
627627
"_csharplang/proposals/csharp-9.0/extension-getenumerator.md": "Extension GetEnumerator support in foreach",
@@ -748,7 +748,6 @@
748748
"_csharplang/proposals/csharp-8.0/ranges.md": "This feature specification describes the syntax for ranges and indices, which support indexing individual elements of a sequence or a range of a sequence from the start or end of that sequence.",
749749
"_csharplang/proposals/csharp-8.0/using.md": "This feature specification supports pattern based using and using declarations to simplify resource cleanup.",
750750
"_csharplang/proposals/csharp-8.0/null-coalescing-assignment.md": "This feature specification describes the syntax to support null coalescing assignment expressions using the '??=' operator.",
751-
"_csharplang/proposals/csharp-8.0/readonly-instance-members.md": "This feature specification describes the syntax for declaring and using readonly instance members.",
752751
"_csharplang/proposals/csharp-9.0/covariant-returns.md": "This feature specification describes covariant return types, where overriding member declarations can return a type derived from the overridden member declaration.",
753752
"_csharplang/proposals/csharp-9.0/extending-partial-methods.md": "This feature specification describes extensions to partial methods. These extensions enable source generators to create or call partial methods.",
754753
"_csharplang/proposals/csharp-9.0/extension-getenumerator.md": "This feature specification describes the necessary pattern for an extension method to provide the GetEnumerator support in a foreach loop.",

docs/csharp/language-reference/builtin-types/ref-struct.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The compiler enforces these restrictions. If you write `ref struct` types that i
8383
For more information, see the following sections of the [C# language specification](~/_csharpstandard/standard/README.md):
8484

8585
- [Structs: Ref modifier](~/_csharpstandard/standard/structs.md#1623-ref-modifier)
86-
- [Safe context constraint for ref struct types](~/_csharpstandard/standard/structs.md#16412-safe-context-constraint)
86+
- [Safe context constraint for ref struct types](~/_csharpstandard/standard/structs.md#16415-safe-context-constraint)
8787

8888
For more information about `ref` fields, see the [Low-level struct improvements](~/_csharplang/proposals/csharp-11.0/low-level-struct-improvements.md) proposal note.
8989

docs/csharp/programming-guide/generics/constraints-on-type-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ The preceding syntax would require implementers to use [explicit interface imple
169169
The `allows ref struct` anti-constraint declares that the corresponding type argument can be a [`ref struct`](../../language-reference/builtin-types/ref-struct.md) type. Instances of that type parameter must obey the following rules:
170170

171171
- It can't be boxed.
172-
- It participates in [ref safety rules](~/_csharpstandard/standard/structs.md#16412-safe-context-constraint).
172+
- It participates in [ref safety rules](~/_csharpstandard/standard/structs.md#16415-safe-context-constraint).
173173
- Instances can't be used where a `ref struct` type isn't allowed, such as `static` fields.
174174
- Instances can be marked with the `scoped` modifier.
175175

docs/csharp/specification/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,6 @@ items:
223223
href: ../../../_csharplang/proposals/extensions.md
224224
- name: Structs
225225
items:
226-
- name: Readonly instance members
227-
href: ../../../_csharplang/proposals/csharp-8.0/readonly-instance-members.md
228226
- name: Parameterless struct constructors
229227
href: ../../../_csharplang/proposals/csharp-10.0/parameterless-struct-constructors.md
230228
- name: Auto-default struct

0 commit comments

Comments
 (0)