ilyalatt / Telega

C# Telegram MTProto Client
https://ilyalatt.github.io/Telega/
MIT License
58 stars 15 forks source link

4 step toward c# 9 #54

Closed GihanSoft closed 3 years ago

GihanSoft commented 3 years ago

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])