Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
return entry.Name switch {
"Bruce Wayne" => Heroes.Batman,
"Matt Eland" => Heroes.Batman,
"The Thing" when entry.Source == "John Carpenter" => Heroes.AntiHero,
"The Thing" => Heroes.ComicThing,
"Bruce Banner" => Heroes.TheHulk,
_ => 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.