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

Consider breaking auto properties with modifiers #810

Open
belav opened this issue Jan 28, 2023 · 1 comment
Open

Consider breaking auto properties with modifiers #810

belav opened this issue Jan 28, 2023 · 1 comment

Comments

@belav
Copy link
Owner

belav commented Jan 28, 2023

    public int Thinige1 { protected internal get; protected internal set; }

    public int Thinige2 { protected get; protected set; }

    public int Thinige3 { get; set; }

   // this seems better
    public int Thinige1
    {
        protected internal get;
        protected internal set;
    }

    // this is more debatable
    public int Thinige2
    {
        protected get;
        protected set;
    }
    
    // fine as is
    public int Thinige3 { get; set; }
@afterwind-io
Copy link

Just add some more cases. To intentionally break properties into a new line, I tried line comment and got:

public int Something //
{ protected internal get; protected internal set; }

Which looks a bit awkward IMO.

belav added a commit that referenced this issue Apr 3, 2023
@belav belav added this to the 0.24.0 milestone Apr 3, 2023
belav added a commit that referenced this issue Apr 3, 2023
@belav belav modified the milestones: 0.24.0, 0.25.0 Apr 26, 2023
@belav belav modified the milestones: 0.25.0, 0.26.0 Jun 24, 2023
@belav belav modified the milestones: 0.26.0, 0.27.0 Sep 8, 2023
@belav belav modified the milestones: 0.27.0, Planned Jan 2, 2024
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

2 participants