Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / Lines­Of­Code­Avoided­Attribute Class

LinesOfCodeAvoidedAttribute Class

Custom attribute that, when applied to an aspect class, specifies how many manual lines of code are avoided every time the aspect is being used.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Aspects.LinesOfCodeAvoidedAttribute

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.39.0 (5.0.39.0)
Syntax
C#
public sealed class LinesOfCodeAvoidedAttribute : Attribute

The LinesOfCodeAvoidedAttribute type exposes the following members.

Constructors
  NameDescription
Public methodLinesOfCodeAvoidedAttribute
Initializes a new LinesOfCodeAvoidedAttribute.
Properties
  NameDescription
Public propertyCount
Gets the number of lines of code saved every time the aspect is applied to a target class.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also