Allow specifying StringComparison when property patterns contain strings. #9268
Unanswered
pregress
asked this question in
Language Ideas
Replies: 2 comments 3 replies
-
#8612 includes the example definition: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Interesting. This seems like a vote in favor of |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Would be great if we could do property patterns and specify the StringComparison enum to handle culture/casing.
The current pattern matching is great, but If you want to match string and ignore case there is no way to achieve this.
Hence you fall back on the string.Equals.
Or a different syntax.
Related:
#5551
#4117
Beta Was this translation helpful? Give feedback.
All reactions