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,
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.
The profiling API has what you want.
http://msdn.microsoft.com/en-us/magazine/cc301725.aspx
, !
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
Source: https://habr.com/ru/post/1781243/More articles:Why: string st = "" + 12; work in c # without conversion? - stringFacebook api search. - apiErasing a container element using iterators - c ++Пользовательская проверка jQuery: номер телефона, начинающийся с 6 - jqueryUnicode library for creating / processing Json documents (C ++) - c ++Brackets in a Doctrine request - phpAre endless lists useful for any real-world application? - listObjectDataSource could not find a non-generic method - c #Convert delegation method? - .netShould CodeContracts replace regular ArgumentExceptions? - .netAll Articles