Time flies while you're having fun, but then one day your bio says something about being a 30+ year veteran in software engineering. Still, I've not seen it all, let alone done it all (yet).
Well, I guess in this case it's down to personal preference and style.
I think that the length of String.Equals call detracts from comprehending what the code is doing, so moving it elsewhere is achieves more than just adding a layer of indirection.
I'm also not against using match over a simple bool- I quite like the kind of tabular layout of the code.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Well, I guess in this case it's down to personal preference and style.
I think that the length of String.Equals call detracts from comprehending what the code is doing, so moving it elsewhere is achieves more than just adding a layer of indirection.
I'm also not against using match over a simple bool- I quite like the kind of tabular layout of the code.