C#C
C#4y ago
Bobby Bob

What is the difference between a dictionary and enum in C-Sharp? [Answered]

So I have the following enum
public enum FoodVariants 
{
BananaCake = 29_000,
PassionFruitCheeseCake = 29_000,
CoffeeCheeseCake = 29_000,
TiramisuCake = 35_000,
PeachMousse = 35_000,
CocoaMousse = 35_000
}


But I'm not sure if an enum is an appropriate type for this because I want to use a switch case statement with the enum based on the string input the program receives from console
Was this page helpful?