Open sandboxFocus

Property LinesOfCodeAvoided

LinesOfCodeAvoided

Gets or sets the reduction in the number of lines of code achieved by applying the advice instance to one code element.

Declaration
public int LinesOfCodeAvoided { get; set; }
Property Value
Type Description
int
Remarks

PostSharp uses this value to estimate the number of lines of handwritten code avoided by aspects. When the property is not set, PostSharp uses a default estimate that depends on the kind of advice. To give an estimate for a whole aspect instead of a single advice, use LinesOfCodeAvoidedAttribute.

See Also