Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.