JPDev to Programmer Humor · 10 months agoCOMEFROMimagemessage-square35linkfedilinkarrow-up1479arrow-down18
arrow-up1471arrow-down1imageCOMEFROMJPDev to Programmer Humor · 10 months agomessage-square35linkfedilink
minus-squarestarmanlinkfedilinkEnglisharrow-up5·10 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/