PostSharpAPI ReferencePost­Sharp.​ReflectionCustom­Attribute­InstanceTarget
Open sandboxFocus

CustomAttributeInstance.Target Property

Target

Gets the declaration on which the custom attribute is defined.

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

A reflection object: Assembly, Type, MethodInfo, ConstructorInfo, ParameterInfo, PropertyInfo, System.Reflection.EventInfo, FieldInfo.