Is the C# compiler able to optimize a statement like someEnumerable.Count() 2?
Is the C# compiler able to optimize a statement like someEnumerable.Count() 2?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(stackoverflow.com/users/87043/ted-nyberg)Ted Nyberg
(stackoverflow.com/users/284240/tim-schmelter)Tim Schmelter
(stackoverflow.com/users/38206/brian-rasmussen)Brian Rasmussen
A special thanks goes out to the (https://stackoverflow.com/questions/76976930/is-the-c-sharp-compiler-able-to-optimize-a-statement-like-someenumerable-count)Stackexchange community
I wish you all a wonderful day! Stay safe :)
c# compiler-optimization cil clr