[C# 13]: New Feature - Overload Resolution Priority #41936
Labels
🏁 Release: .NET 9
Work items for the .NET 9 release
doc-enhancement
Improve the current content [org][type][category]
dotnet-csharp/svc
in-pr
This issue will be closed (fixed) by an active pull request.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
resolved-by-customer
Indicates issues where the customer no longer needs any help. [org][resolution]
whats-new/subsvc
Visual Studio release
Other (please put exact version in description textbox)
Link to speclet
Link to Pull request
New behavior
Merged in 17.12p1
This PR specifies an attribute that can raise or lower the relative likelihood that an overload is chosen as "better" than another overload.
It is used later in the overload resolution as an "escape hatch" or "tie breaker" to pick a preferred overload, typically for performance reasons.
Areas affected
Language reference tasks
We don't expect a lot of developers will directly use this feature. The runtime team is leveraging it to make Span based overloads preferred over allocating overloads.
Tutorial tasks
None.
Everyday C# tasks
None.
Associated WorkItem - 310943
The text was updated successfully, but these errors were encountered: