Skip to main content

RCS0043: Format accessor's braces on a single line when expression is on single line

WARNING

This analyzer is obsolete. Use RCS0020 with option 'roslynator_accessor_braces_style = single_line_when_expression_is_on_single_line'.

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
string Foo
{
get
{
return _foo;
}
set
{
_foo = value;
}
}
fix.cs
string Foo
{
get { return _foo; }
set { _foo = value; }
}

Applies to