Skip to content

Instantly share code, notes, and snippets.

@controlflow
Created Jul 12, 2020
Embed
What would you like to do?
var parameter = parameterInstance.Element;
if (parameter.Kind != ParameterKind.VALUE
&& parameter.Kind != ParameterKind.REFERENCE) return;
var parameter = parameterInstance.Element;
if (parameter.Kind is not (ParameterKind.VALUE or ParameterKind.REFERENCE)) return;
@controlflow
Copy link
Author

controlflow commented Jul 13, 2020

if (x == 1 || x == 2) { }

if (x is 1 or 2) { }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment