[C# 12]: New Experimental Feature - Interceptors #35878
Labels
🏁 Release: .NET 8
Work items for the .NET 8 release
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
dotnet-csharp/svc
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
Added in 17.7, preview 3.
Because this is an experimental feature, at this time, we're only adding a note in the What's new page, and covering new compiler warnings and errors.
An interceptor is a method which can declaratively substitute a call to an interceptable method with a call to itself at compile time. This substitution occurs by having the interceptor declare the source locations of the calls that it intercepts. This provides a limited facility to change the semantics of existing code by adding new code to a compilation (e.g. in a source generator).
Areas affected
Language reference tasks
Tutorial tasks
No response
Everyday C# tasks
No response
Associated WorkItem - 117224
The text was updated successfully, but these errors were encountered: