IWeavingSymbolsService.PushAnnotation Method |
Pushes an annotation to PostSharp Tools for Visual Studio.
Namespace: PostSharp.Extensibility
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
void PushAnnotation( Object targetDeclaration, Type annotationClass = null, string arguments = null, string description = null, int linesOfCodeAvoided = 0 )
Parameters
- targetDeclaration
- Type: System.Object
The declaration to which the annotation relate. - annotationClass (Optional)
- Type: System.Type
The type of the annotation. - arguments (Optional)
- Type: System.String
Arguments of the annotation. - description (Optional)
- Type: System.String
A human-readable description of the annotation. - linesOfCodeAvoided (Optional)
- Type: System.Int32
A number incrementing the number of lines of code saved on targetDeclaration.