Open sandboxFocusImprove this doc

Adding Aspects Dynamically

In addition to providing advices, an aspect can provide other aspects dynamically using IAspectProvider. This allows aspect developers to address situations where it is not possible to add aspects declaratively (using custom attributes) to the source code. For instance, aspects can be provided on the basis of a complex analysis of the target assembly using System.Reflection, or by reading an XML file.

For details about IAspectProvider, see Adding Aspects Programmatically Using IAspectProvider.

See Also

Reference

IAspectProvider

Other Resources

Adding Aspects Programmatically Using IAspectProvider
Providing Advices Dynamically
Selecting Members with Pointcuts