PostSharp.ILAPI ReferencePost­Sharp.​AspectsIAspect­ProviderProvide­Aspects
Open sandboxFocus

IAspectProvider.ProvideAspects Method

ProvideAspects(Object)

Provides new aspects.

Declaration
IEnumerable<AspectInstance> ProvideAspects(object targetElement)
Parameters
Type Name Description
Object targetElement

Code element (System.Reflection.Assembly, Type, System.Reflection.FieldInfo, MethodBase, PropertyInfo, System.Reflection.EventInfo, ParameterInfo, or LocationInfo) to which the current aspect has been applied.

Returns
Type Description
System.Collections.Generic.IEnumerable<AspectInstance>

A set of aspect instances.