JPDev@programming.dev to Programmer Humor@programming.dev · 6 months agoCOMEFROMprogramming.devexternal-linkmessage-square36fedilinkarrow-up1472arrow-down18
arrow-up1464arrow-down1external-linkCOMEFROMprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 6 months agomessage-square36fedilink
minus-squarestarman@programming.devlinkfedilinkEnglisharrow-up5·6 months agoLooks like C# 12 interceptors: [InterceptsLocation(@"C:\testapp\Program.cs", line: 4, column: 5)] I know it looks awful, but it’s not intended for direct use, but rather for source generators for native ahead of time compilation. https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/
Looks like C# 12 interceptors:
[InterceptsLocation(@"C:\testapp\Program.cs", line: 4, column: 5)]
I know it looks awful, but it’s not intended for direct use, but rather for source generators for native ahead of time compilation.
https://andrewlock.net/exploring-the-dotnet-8-preview-changing-method-calls-with-interceptors/