1
0
mirror of synced 2025-12-19 09:50:46 -05:00
Files
James Montemagno bf1d666ec1 Add release notes for .NET 10 Preview 7 across various components (#10006)
* Add release notes for .NET 10 Preview 7 across various components

* Remove outdated prompt for creating pull requests for Preview 7

* Add prompt for creating pull requests for .NET 10 Preview 7

* Update wpf for preview 7 (#10005)

* Update wpf for preview 7

* Add details

* Fix version

* Update wpf.md

* Update wpf.md

---------

Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: Jon Galloway <jongalloway@gmail.com>

* Update dotnetmaui for preview 7 (#9997)

* Update dotnetmaui for preview 7

* Update dotnetmaui.md for preview 7 with copilot consolidation

* Update release-notes/10.0/preview/preview7/dotnetmaui.md

Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>

* Update dotnetmaui.md

* Update dotnetmaui.md

---------

Co-authored-by: David Ortinau <david.ortinau@microsoft.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>

* Update winforms for preview 7 (#10004)

* Update winforms for preview 7

* Update winforms readme.md

---------

Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>

* Update efcore for preview 7 (#9998)

* Update efcore for preview 7

* Fill in EF 10 preview7 release notes

* Update release-notes/10.0/preview/preview7/efcore.md

Co-authored-by: Martin Costello <martin@martincostello.com>

---------

Co-authored-by: Shay Rojansky <roji@roji.org>
Co-authored-by: Martin Costello <martin@martincostello.com>

* Update release-notes/10.0/preview/preview7/README.md

Co-authored-by: Weihan Li <weihanli@outlook.com>

* Add comprehensive ASP.NET Core release notes for .NET 10 Preview 7 (#10023)

* Update fsharp for preview 7 (#9999)

* Update fsharp for preview 7

* Update release-notes/10.0/preview/preview7/fsharp.md

---------

Co-authored-by: Jon Galloway <jongalloway@gmail.com>

* Update sdk for preview 7 (#10002)

* Update sdk for preview 7

* add notes about any RID support in .NET tools

* Update release-notes/10.0/preview/preview7/sdk.md

Co-authored-by: Martin Costello <martin@martincostello.com>

* Update release-notes/10.0/preview/preview7/sdk.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Chet Husk <chusk3@gmail.com>
Co-authored-by: Chet Husk <baronfel@users.noreply.github.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Jon Galloway <jongalloway@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libraries for preview 7 (#10000)

* Update libraries for preview 7

* Add notes for CreateNewProcessGroup

* Update release-notes/10.0/preview/preview7/libraries.md

* Update markdown link

* Add cryptography notes

* Add PipeReader support for JsonSerializer

* change received to sent

* Composite ML-DSA

* clean up pqc bullet

* update PipeReader blurb

* Add WebSocketStream

* Fix WebSocketStream link and add TLS 1.3 support for macOS client

* Update TLS 1.3 notes for macOS Network.framework behavior and edge cases

* Update release-notes/10.0/preview/preview7/libraries.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update release-notes/10.0/preview/preview7/libraries.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: David Cantú <dacantu@microsoft.com>
Co-authored-by: Pranav Senthilnathan <pranas@microsoft.com>
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
Co-authored-by: Natalia Kondratyeva <knatalia@microsoft.com>
Co-authored-by: Ahmet Ibrahim Aksoy <aaksoy@microsoft.com>
Co-authored-by: Jon Galloway <jongalloway@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update csharp for preview 7 (#9996)

* Update csharp for preview 7

* Add C# preview 7 features.

Add the remaining C# 14 features delivered in .NET 10 preview 7.

* Update release-notes/10.0/preview/preview7/csharp.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update release-notes/10.0/preview/preview7/csharp.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
Co-authored-by: Jon Galloway <jongalloway@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update containers for preview 7 (#9995)

* Update containers for preview 7

* Add dnx feature notes

---------

Co-authored-by: Logan Bussell <loganbussell@microsoft.com>

* Update runtime for preview 7 (#10001)

* Update runtime for preview 7

* Update release-notes/10.0/preview/preview7/runtime.md

---------

Co-authored-by: Jon Galloway <jongalloway@gmail.com>

* Update 10.0.0-preview.7.md

* Update README.md

* Update releases.md

* Update README.md

* Update releases-index.json

* Update README.md

* Update releases.json

* Update install-linux.md

* Update install-macos.md

* Update install-windows.md

* Create release.json

* Update markdown files and release notes for Preview 7

* Update release notes for Preview 7: add missing WPF entry, fix formatting in ASP.NET Core, SDK, and Windows Forms notes

* fix winforms

* Update markdown link check workflow to allow all branches for pull requests and fix JSON formatting in release notes

* Remove feature summaries from F# and Visual Basic release notes for Preview 7

* Update release-notes/10.0/preview/preview7/csharp.md

Co-authored-by: Bill Wagner <wiwagn@microsoft.com>

---------

Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com>
Co-authored-by: Jon Galloway <jongalloway@gmail.com>
Co-authored-by: David Ortinau <david.ortinau@microsoft.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
Co-authored-by: Shay Rojansky <roji@roji.org>
Co-authored-by: Martin Costello <martin@martincostello.com>
Co-authored-by: Weihan Li <weihanli@outlook.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Chet Husk <chusk3@gmail.com>
Co-authored-by: Chet Husk <baronfel@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: David Cantú <dacantu@microsoft.com>
Co-authored-by: Pranav Senthilnathan <pranas@microsoft.com>
Co-authored-by: Jeremy Barton <jbarton@microsoft.com>
Co-authored-by: Natalia Kondratyeva <knatalia@microsoft.com>
Co-authored-by: Ahmet Ibrahim Aksoy <aaksoy@microsoft.com>
Co-authored-by: Bill Wagner <wiwagn@microsoft.com>
Co-authored-by: Logan Bussell <loganbussell@microsoft.com>
Co-authored-by: victorisr <victorisr@microsoft.com>
2025-08-12 12:09:42 -07:00

2.9 KiB

C# in .NET 10 Preview 7 - Release Notes

Here's a summary of what's new in C# in this preview release:

Preview 7 represents feature complete for C# 14. Any features available only in later previews will be gated behind feature flags. That enables a longer feedback cycle for any additional features.

C# updates in .NET 10:

Extension operators

The new extension blocks now include support for operators, with the exception of implicit and explicit conversion operators. You can declare operators in extension blocks, as shown in the following example:

public static class Operators
{
    extension<TElement>(TElement[] source) where TElement : INumber<TElement>
    {
        public static TElement[] operator *(TElement[] vector, TElement scalar) { ... }
        public static TElement[] operator *(TElement scalar, TElement[] vector) { ... }
        public void operator *=(TElement scalar) { ... }
        public static bool operator ==(TElement[] left, TElement[] right) { ... }
        public static bool operator !=(TElement[] left, TElement[] right) { ... }
    }
}

Several of the rules for extension operators are demonstrated in the preceding example:

  • At least one of the operands must be the extended type, TElement[] in the preceding example.
  • For operators that require pair-wise declarations, such as == and != in the preceding example, both operators must be declared in the same static class. They are not required to be in the same extension container.
  • Instance compound assignment operators, and instance increment and decrement operators are expected to mutate the current instance. Therefore reference type parameters must be passed by value and value type parameters must be passed by ref. These operators can't be declared when the extended type is an unconstrained type parameter.
  • Extension operators, like other extension members, can't use the abstract, virtual, override, or sealed modifiers. This is consistent with other extension members.

Extension members are only considered for overload resolution when no applicable predefined or user defined non-extension members are found.

Named and optional parameters in expression trees

This is a small feature that removes a limitation for expression trees. Code in lambda expressions can use optional parameters and named arguments when converted to an expression tree. The call rewriting orders named arguments and provides values for missing optional parameters. Query providers shouldn't need to make any adjustments for this support.