PostSharpAPI ReferencePost­Sharp.​AspectsAspect­InstanceTarget­Element
Open sandboxFocus

AspectInstance.TargetElement Property

TargetElement

Gets the code element (Assembly, System.Type, System.Reflection.FieldInfo, System.Reflection.MethodBase, System.Reflection.PropertyInfo, EventInfo, ParameterInfo, or LocationInfo) to which the current AspectInstance is applied.

Declaration
public object TargetElement { get; }
Property Value
Type Description
Object