You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class TestClass
{
public int X { set; get; } // Triggers SA1212
public int Y { init; get; } // Does NOT trigger SA1212!
}
I expect SA1212 ("A get accessor appears after a set accessor within a property or indexer") to trigger on both properties above, but it does not. That is, I expect init and set to be treated the same way in this rule.
Tested with 1.2.0-beta.435.
The text was updated successfully, but these errors were encountered:
bjornhellander
added a commit
to bjornhellander/StyleCopAnalyzers
that referenced
this issue
May 23, 2023
I expect SA1212 ("A get accessor appears after a set accessor within a property or indexer") to trigger on both properties above, but it does not. That is, I expect
init
andset
to be treated the same way in this rule.Tested with 1.2.0-beta.435.
The text was updated successfully, but these errors were encountered: