Connect to .Net

I want to connect some function in .Net, is there any way to do this? I do not mean window binding, I want to connect the CLR function, for example, when the DataAdapter.Fill is called Thanks,

+3
source share
3 answers

This is not possible at all.
For diagnostic purposes, you can use Moles , but I would not recommend it for use in production,

In certain cases, you can make an inherited class that overrides a virtual function.

+2
source

The profiling API has what you want.

http://msdn.microsoft.com/en-us/magazine/cc301725.aspx

, !

+1

I don’t know if this is possible with a .Net map, but what you are looking for is called Aspect Oriented Programming..Net works by modifying the IL code that Visual Studio generates at compile time.

See more information: http://www.codeproject.com/KB/cs/UsingAOPInCSharp.aspx

0
source

Source: https://habr.com/ru/post/1781243/


All Articles