Here's what I'd like to do in CSharp but I dont know how to do this (I know this is not valid C#
):
const enum GameOver { Winner, Looser, Tied, };
GameOvers = [
GameOver.Winner: "Person is the winner",
GameOver.Looser: "Person is the looser",
GameOver.Tied: "Game is tied",
]
And later on, I want to be able to call it like:
Display(GameOvers[GameOver.Winner])
(I want to handle a const array of errors like this actually).
How would you do in C#
?