paint-brush
The 30-Day .NET Challenge - Day 21: StringComparisonby@ssukhpinder
129 reads

The 30-Day .NET Challenge - Day 21: StringComparison

by Sukhpinder Singh3mApril 9th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The article demonstrates the importance of using StringComparison options for efficient string comparison in.NET. How you compare strings can significantly impact your application performance. The ToLower method creates a new string memory allocation for each comparison, leading to unnecessary allocations. The OrdinalIgnoreCase option is ideal for case-insensitive comparisons where cultural rules do not apply.
featured image - The 30-Day .NET Challenge - Day 21: StringComparison
Sukhpinder Singh HackerNoon profile picture
Sukhpinder Singh

Sukhpinder Singh

@ssukhpinder

Programmer by heart | C# | Python | .Net Core | Xamarin | Angular | AWS

Learn More
LEARN MORE ABOUT @SSUKHPINDER'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item
1-item
2-item

STORY’S CREDIBILITY

Original Reporting

Original Reporting

This story contains new, firsthand information uncovered by the writer.

DYOR

DYOR

The writer is smart, but don't just like, take their word for it. #DoYourOwnResearch before making any investment decisions or decisions regarding your health or security. (Do not regard any of this content as professional investment advice, or health advice)

Vested Interest

Vested Interest

This writer has a vested interest be it monetary, business, or otherwise, with 1 or more of the products or companies mentioned within.

L O A D I N G
. . . comments & more!

About Author

Sukhpinder Singh HackerNoon profile picture
Sukhpinder Singh@ssukhpinder
Programmer by heart | C# | Python | .Net Core | Xamarin | Angular | AWS

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite