Is .NET compiler allowed to optimize bool result = someMethod()  true to bool result = true?
Channel: Peter Schneider
Date: 14/10/2023

Is .NET compiler allowed to optimize bool result = someMethod()  true to bool result = true?
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/99256/martyix)MartyIX 
 (stackoverflow.com/users/134204/panagiotis-kanavos)Panagiotis Kanavos 
 (stackoverflow.com/users/2501279/guru-stron)Guru Stron 
 (stackoverflow.com/users/38206/brian-rasmussen)Brian Rasmussen 
 A special thanks goes out to the (https://stackoverflow.com/questions/77133429/is-net-compiler-allowed-to-optimize-bool-result-somemethod-true-to-bo)Stackexchange community 
 
 I wish you all a wonderful day! Stay safe :)
 
  .net c#