FIND YOUR NEXT FEW LINES
The snippet library.
Small, practical examples. Search by task or narrow things down below.
5 snippets foundClear filters
Find text ignoring case
Use ordinal case-insensitive comparison for a C# substring search.
C#✓ Tested
Replace literal text
Replace every literal occurrence in a C# string.
C#✓ Tested
Split and trim values
Split simple comma-separated C# text and trim each value.
C#✓ Tested
Trim surrounding whitespace
Remove whitespace at the ends of a C# string.
C#✓ Tested
Try parsing an integer
Use TryParse to avoid exceptions for invalid C# integer input.
C#✓ Tested