Skip to main content

RCS0007: Add blank line between accessors

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
string P
{
get
{
return _p;
}
set
{
_p = value;
}
}
fix.cs
string P
{
get
{
return _p;
}

set
{
_p = value;
}
}

Remarks

This rule does not enforce an blank line between two single-line accessors.

Applies to