logoalt Hacker News

hahn-kevtoday at 4:13 AM1 replyview on HN

You don't. The way it works is that it intercepts the call site when the input args are constant. If they're not then it won't be replaced and it will call the original method. C# source generators can't replace method definitions, however a call site can be changed to another method via source generators.


Replies

NuclearPMtoday at 5:20 AM

You don’t what?

show 1 reply