Skip to content

Instantly share code, notes, and snippets.

@controlflow
Created January 9, 2017 17:15
Show Gist options
  • Select an option

  • Save controlflow/359e10ed36cc4b71120387920de231a5 to your computer and use it in GitHub Desktop.

Select an option

Save controlflow/359e10ed36cc4b71120387920de231a5 to your computer and use it in GitHub Desktop.
using System;
public class C {
public void M() {
bool b;
if (b = true) { }
while (b = true) { }
for (; b = true; ) { }
do { } while (b = true);
try { }
catch when (b = true) { }
switch (b = true) {
case bool u when b = true:
break;
}
b.ToString();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment