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

sealed partial v partial sealed? #3236

Closed
stuartstein777 opened this issue Feb 27, 2020 · 3 comments
Closed

sealed partial v partial sealed? #3236

stuartstein777 opened this issue Feb 27, 2020 · 3 comments

Comments

@stuartstein777
Copy link

Would it be possible for the order of sealed and partial to not matter?

i.e. this compiles

internal sealed partial class Foo { }

This doesn't.

internal partial sealed class Foo {}

Thanks

@DavidArno
Copy link

DavidArno commented Feb 27, 2020

For what it's worth, the second example reads as if it's only a partially sealed class, whereas the former is a sealed version of a partial class. So the former feels correct and the latter feels grammatically incorrect to me.

Not sure that's a very good reason to oppose this though. 😄

@alrz
Copy link
Contributor

alrz commented Feb 27, 2020

#946

@stuartstein777
Copy link
Author

Didn't realise it was a duplicate. I'll close

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

No branches or pull requests

3 participants