Skip to content

Commit 837b1db

Browse files
committed
Publish extensions specification
Publish the feature specification for the extension members feature.
1 parent 342094d commit 837b1db

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

docfx.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"unbound-generic-types-in-nameof.md",
5959
"first-class-span-types.md",
6060
"simple-lambda-parameters-with-modifiers.md",
61-
"partial-events-and-constructors.md"
61+
"partial-events-and-constructors.md",
62+
"extensions.md"
6263
],
6364
"src": "_csharplang/proposals",
6465
"dest": "csharp/language-reference/proposals",
@@ -509,7 +510,7 @@
509510
"_csharplang/proposals/csharp-11.0/*.md": "09/30/2022",
510511
"_csharplang/proposals/csharp-12.0/*.md": "08/15/2023",
511512
"_csharplang/proposals/csharp-13.0/*.md": "10/31/2024",
512-
"_csharplang/proposals/*.md": "03/11/2025",
513+
"_csharplang/proposals/*.md": "04/08/2025",
513514
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 7.md": "11/08/2022",
514515
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 8.md": "11/08/2023",
515516
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 9.md": "11/09/2024",
@@ -689,6 +690,7 @@
689690
"_csharplang/proposals/first-class-span-types.md": "First-class span types",
690691
"_csharplang/proposals/simple-lambda-parameters-with-modifiers.md": "Simple lambda parameters with modifiers",
691692
"_csharplang/proposals/partial-events-and-constructors.md": "Partial events and constructors",
693+
"_csharplang/proposals/extensions.md": "Extension members",
692694
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 7.md": "C# compiler breaking changes since C# 10",
693695
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 8.md": "C# compiler breaking changes since C# 11",
694696
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 9.md": "C# compiler breaking changes since C# 12",
@@ -814,6 +816,7 @@
814816
"_csharplang/proposals/first-class-span-types.md": "This proposal provides several implicit conversions to `Span<T>` and `ReadOnlySpan<T>` that enable library authors to have fewer overloads and developers to write code that resolves to faster Span based APIs",
815817
"_csharplang/proposals/simple-lambda-parameters-with-modifiers.md": "This proposal provides allows lambda parmaeters to be declared with modifiers without requiring their type names. You can add modifiers like `ref` and `out` to lambda parameters without specifying their type.",
816818
"_csharplang/proposals/partial-events-and-constructors.md": "This proposal provides allows partial events and constructors to be declared in partial classes. This allows the event and constructor to be split across class declarations.",
819+
"_csharplang/proposals/extensions.md": "This proposal enables new kinds of extension members. These new extension members support extension properties, extension static members, including extension operators.",
817820
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 7.md": "Learn about any breaking changes since the initial release of C# 10 and included in C# 11",
818821
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 8.md": "Learn about any breaking changes since the initial release of C# 11 and included in C# 12",
819822
"_roslyn/docs/compilers/CSharp/Compiler Breaking Changes - DotNet 9.md": "Learn about any breaking changes since the initial release of C# 12 and included in C# 13",

docs/csharp/specification/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,8 @@ items:
217217
href: ../../../_csharplang/proposals/csharp-10.0/async-method-builders.md
218218
- name: Params collections
219219
href: ../../../_csharplang/proposals/csharp-13.0/params-collections.md
220+
- name: Extension members
221+
href: ../../../_csharplang/proposals/extensions.md
220222
- name: Structs
221223
items:
222224
- name: Readonly instance members

docs/csharp/whats-new/csharp-14.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ ms.topic: whats-new
88

99
C# 14 includes the following new features. You can try these features using the latest [Visual Studio 2022](https://visualstudio.microsoft.com/vs/preview/) version or the [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet):
1010

11+
- [Extension members](#extension-members)
1112
- [`nameof` supports unbound generic types](#unbound-generic-types-and-nameof)
1213
- [More implicit conversions for `Span<T>` and `ReadOnlySpan<T>`](#implicit-span-conversions)
1314
- [Modifiers on simple lambda parameters](#simple-lambda-parameters-with-modifiers)
@@ -24,6 +25,10 @@ You can find any breaking changes introduced in C# 14 in our article on [breakin
2425

2526
[!INCLUDE [released-version-feedback](./includes/released-feedback.md)]
2627

28+
## Extension members
29+
30+
You can learn more details by reading the [feature specification](~/_csharplang/proposals/extensions.md) for the new extension members feature.
31+
2732
## The `field` keyword
2833

2934
The token `field` enables you to write a property accessor body without declaring an explicit backing field. The token `field` is replaced with a compiler synthesized backing field.

0 commit comments

Comments
 (0)