Use the code in the attachment file TestRecordWith.zip, compile it, and open TestRecordWith.exe in bin\Debug\net472 with ilspy. You will see the following error output:

Open TestRecordWith.dll in bin\Debug\net9.0 with ilspy and you will see the following correct output:
