Created
October 24, 2016 12:39
-
-
Save controlflow/9c836bee1c5f41d34e9b5e35be2e5e86 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while (myLexer.TokenType == CSharpTokenType.DOT || | |
myLexer.TokenType == CSharpTokenType.DOUBLE_COLON) | |
{ | |
// ... | |
} | |
// => | |
while (myLexer.TokenType is var tt && (tt == CSharpTokenType.DOT || | |
tt == CSharpTokenType.DOUBLE_COLON)) | |
{ | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment