This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0af06da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't the C# compiler make these kinds of substitutions? I guess there's no harm in doing the substitution manually as long as there isn't any loss in readability.
0af06da
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would even say it's an improvement to readability, but yeah the compiler will make that substitution (I checked on sharplab.io)
edit: it will, but only if you build in release mode, in debug it will actually keep the local variable, you can mess with it yourself, the above link stores the code I used to test