Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1504: Additional setter lines are deleted unintentionally #1448

Closed
daflotsch opened this issue Sep 10, 2015 · 2 comments
Closed

SA1504: Additional setter lines are deleted unintentionally #1448

daflotsch opened this issue Sep 10, 2015 · 2 comments
Assignees
Milestone

Comments

@daflotsch
Copy link

If I have a something like:

public Uri CurrentContentUri
{
    get { return _currentContentUri; }
    private set
    {
        _currentContentUri = value;
        OnPropertyChanged();
    }
}

and want to follow the suggestion for SA1504, it will delete the OnPropertyChanged() line. It seems like it deletes all additional setter lines on this rule

image

@pdelvo
Copy link
Member

pdelvo commented Sep 10, 2015

Wow thats a bad one. Thanks for reporting. Im taking a look at it.

pdelvo added a commit to pdelvo/StyleCopAnalyzers that referenced this issue Sep 10, 2015
@daflotsch
Copy link
Author

Thanks a lot, appreciate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants