Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created October 9, 2019 03:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/bc1aecb1769fc72efcb9212aa59d0280 to your computer and use it in GitHub Desktop.
Save IntegerMan/bc1aecb1769fc72efcb9212aa59d0280 to your computer and use it in GitHub Desktop.
switch (entry.Name) {
case "Bruce Wayne":
case "Matt Eland":
return Heroes.Batman;
case "The Thing":
if (entry.Source == "John Carpenter") {
return Heroes.AntiHero;
}
return Heroes.ComicThing;
case "Bruce Banner":
return Heroes.TheHulk;
// Many heroes omitted...
default:
return Heroes.NotAHero;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment