Consistent Object Initializer Order #8096
Unanswered
TonyValenti
asked this question in
Language Ideas
Replies: 1 comment 5 replies
-
Having the object initializers execute in anything but lexical order would be a nightmare to reason about. If you have a preferred order I would suggest an analyzer with a fixer that would rewrite the initializers in the expected order. Personally I think that if there is a required order in which to invoke something the API should force that through something like a series of builder interfaces. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way for me to set a priority/order on properties so that I can refactor my app and have all object initializer properties set in the same consistent order?
Beta Was this translation helpful? Give feedback.
All reactions