Guys, Here are some useful links for everyone who is interested in Runtime MSIL Code Rewriting (Instrumentation):
1. http://www.codeproject.com/dotnet/model_constraints_in_net2.asp It contains a very comprehensive example and a bunch of technical tricks. It's based on my upcoming article in MSDN Magazine (text will be available within two weeks, code is already available) 2. http://msdn.microsoft.com/msdnmag/issues/03/09/default.aspx Thanks. Alex