Teddy's Aspect Weaver Version 0.3 [Updated: 2005/09/27]
Changes: - Add the geting context info and getting context arguments ability - Fix some internal XPath bugs - Fix BeforeConstructorCall/BeforeMethodCall bugs - Fix the ILML Library parsing method parameter name bug - Add the object instance in aspect local stack ability, which means you can new any object in aspect code only if the type of you object is defined or can be referenced in the base assembly - Move assembly AspectWeaver.Attributes code to assembly AspectWeaver.Aspects
Sample of Getting Runtime Method Context Info and Method Arguments
In the sample, we can see, if you call the GetContextInfo() and GetArguments() from aspect classes which inherited from AspectWeaver.Aspects.Aspect which defined the two methods, the weaved code be translated to local reflection code, no additional dependence. But it is interesting that in fact, there are not any code in the two methods' body at all. Do you know why? :^)