1- normal switch => switch statement
2- normal switch => switch statement in code gen
3- for null checks: ReferenceEquals(...) to pattern (x is nully is not null) applied in code gen
4- use range operator instead of "string".SubString(...); ("string"[x..y] or "string"[x..] or "string"[..y]) or "string"[x..^y])
1- normal switch => switch statement 2- normal switch => switch statement in code gen 3- for null checks:
ReferenceEquals(...)
to pattern (x is null
y is not null
) applied in code gen 4- use range operator instead of"string".SubString(...);
("string"[x..y]
or"string"[x..]
or"string"[..y]
) or"string"[x..^y]
)