Stefan ฤokiฤ‡ | .NET (@thecodeman__) 's Twitter Profile
Stefan ฤokiฤ‡ | .NET

@thecodeman__

โžก๏ธ Level Up with Everyday .NET Content | Microsoft MVP
โžก๏ธ YouTube: youtube.com/@thecodeman_
โžก๏ธ TheCodeMan.net Newsletter

ID: 491684234

linkhttps://thecodeman.net calendar_today13-02-2012 22:21:57

2,2K Tweet

6,6K Followers

236 Following

Stefan ฤokiฤ‡ | .NET (@thecodeman__) 's Twitter Profile Photo

Don't make this mistake. โŒ Don't use .ToLower() for string comparison. Why? Theย .๐—ง๐—ผ๐—Ÿ๐—ผ๐˜„๐—ฒ๐—ฟ() method creates a new string memory allocation for each comparison, leading to unnecessary allocations. Consider a method that receives frequent requests, which can degrade

Don't make this mistake. โŒ 

Don't use .ToLower() for string comparison. Why?

Theย .๐—ง๐—ผ๐—Ÿ๐—ผ๐˜„๐—ฒ๐—ฟ() method creates a new string memory allocation for each comparison, leading to unnecessary allocations. 

Consider a method that receives frequent requests, which can degrade