Friday .NET tip: scanning text for the same substrings repeatedly? Build SearchValues<string> once, then use ContainsAny. Need the position? Use IndexOfAny. .NET 9+, Ordinal or OrdinalIgnoreCase only. https://learn.microsoft.com/dotnet/api/system.buffers.searchvalues.create?view=net-10.0</string>
0 reposts1 like