I want to hook some function in .Net is there a way to do it? I don’t mean windows hooking, I want to hook CLR function like when DataAdapter.Fill is called Thanks,
This is not possible in general.
For diagnostics purposes, you can use Moles, but I wouldn't recommend it for production use,
In specific cases, you can make an inherited class that overrides a virtual function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With