Tag: performance
All the articles with the tag "performance".
-
Even and odd check in C# using bitwise operations
Published:• 3 min readLearn how to efficiently check if numbers are even or odd using bitwise operations in C#, a more elegant alternative to the modulo operator
-
Do not use ToLower() method for string comparison
Published:• 3 min readLearn why using ToLower() for string comparison is inefficient and culture-sensitive, and discover better alternatives using StringComparison enumeration