Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
New features in C# 11 (.NET 7) - Feature 4 - List Patterns by @dotnetfiddle
[1, 2, 3, 4]        is [1, 2, 3, 4]     True
[1, 2, 3, 4]        is [1, 2, 3]        False
[1, 2, 3, 4]        is [1, _, 4]        False
[1, 2, 3, 4]        is [1, ..., 4]      True
[1, 2, 3, 4]        is [1, ..., <4]     False
[1, 2, 3, 4]        is [1, ..., >=4]    True
Cached Result
Last Run: 8:06:51 pm
Compile: 0.011s
Execute: 0.06s
Memory: 223.69kb
CPU: 0.071s