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

sort modifiers #725

Closed
glmnet opened this issue Aug 22, 2022 · 1 comment · Fixed by #744
Closed

sort modifiers #725

glmnet opened this issue Aug 22, 2022 · 1 comment · Fixed by #744
Labels
Milestone

Comments

@glmnet
Copy link
Contributor

glmnet commented Aug 22, 2022

e.g. methods like

public override async Task Method1() {...} 
async public override Task Method1() {...} 

are equivalent

It'd be nice to have first visibility and last async, or whatever, but consistent.

This is similar to sort usings maybe and that discussion might apply here too.

@belav belav added type:enhancement New feature or request area:formatting labels Sep 4, 2022
@glmnet glmnet mentioned this issue Oct 19, 2022
@danfma
Copy link

danfma commented Nov 4, 2022

Can I add one more to this topic? The new required keyword of C# 11 is being put before the property access modifier.

So, for example, instead of having:

public required string Name { get; init; }

we have:

required public string Name { get; init; }

@belav belav added this to the 0.25.0 milestone Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants