Commit 63b4e71
Fix net462/C# 7.3 build: avoid switch-expression recursive patterns
CS8370: recursive patterns require C# 8+; the net462 (PS 5.1) target
compiles with C# 7.3. Replaced the switch expression with an if/else
chain.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 597b01c commit 63b4e71
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
74 | 81 | | |
75 | 82 | | |
76 | 83 | | |
| |||
0 commit comments