-
### Background and motivation
One of the most common uses of AllowedValues/DeniedValues is with strings, however, they are checked case-sensitive, and we probably want to allow case-insensitive com…
-
Per the following two documents, comparing strings using `StringComparison.OrdinalIgnoreCase` is explicitly documented as equivalent to calling `ToUpperInvariant` on each string, then performing an or…
-
### Is your tweak request related to a problem? Please describe.
Index Of String does not currently allow setting a StringComparison.
### Describe what would you like tweaked
Index Of String …
-
**Product and Version Used**:
Roslynator 2.3.0
Visual Studio 16.4.4
**Steps to Reproduce**:
Consider this Linq code running against a SQL database with a case sensitive collation.
This is…
-
### Background and motivation
The `String.Replace` method contains one overload which receives a `StringComparison`, and another overload which receives a `CultureInfo`. Similar overloads should al…
-
Right now the following replacements for string ignore the `StringComparison` argument, maybe others too:
- `IndexOf`
- `StartsWith`
- `EndsWith`
Not entirely related, but because I'm too lazy…
-
Currently we support the `==` operator and the `String.Equals(String)` methods which both have the same behavior in-memory as `String.Equals(String, StringComparison.Ordinal)`. We could also support t…
-
## Steps to Reproduce
1. Start a new Blazor project (`dotnet new blazorwasm`)
2. Add Razor code as follows:
```cshtml
@System.Globalization.CultureInfo.CurrentCulture
@System.Globalization.…
-
I want to compare if a specific substring is in a string. The comparison should be case insensitive.
Until EFCore 2.2 i used
`e => e.Name.Contains(searchString, StringComparison.InvariantCultureI…
-
I am getting an "Failed to retrieve enumerable item type of System.Collection.ArrayList" exception with inner exception "InvalidOperationException: Sequence contains more than one matching element" at…