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
System.Object

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