Open sandboxFocus

Method PushAnnotation

PushAnnotation(object, Type, string, string, int)

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.

int linesOfCodeAvoided

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