PostSharpAPI ReferencePost­Sharp.​ExtensibilityIWeaving­Symbols­ServicePush­Annotation
Open sandboxFocus

IWeavingSymbolsService.PushAnnotation Method

PushAnnotation(Object, Type, String, String, Int32)

Pushes an annotation to PostSharp Tools for Visual Studio.

Declaration
void PushAnnotation(object targetDeclaration, Type annotationClass = null, string arguments = null, string description = null, int linesOfCodeAvoided = 0)
Parameters
Type Name Description
Object targetDeclaration

The declaration to which the annotation relate.

Type annotationClass

The type of the annotation.

String arguments

Arguments of the annotation.

String description

A human-readable description of the annotation.

Int32 linesOfCodeAvoided

A number incrementing the number of lines of code saved on targetDeclaration.