This is my enumeration:
enum Stations
{
Central,
RomaStreet,
Milton,
Auchenflower,
Toowong,
Taringa,
Indooroopilly
};
this is my code:
static string DepartureStation(){
string departStationinput;
string departStation;
if (departStation == null){
Console.WriteLine("Please Enter one of the names of the stations listed above! ");
departStationinput = Console.ReadLine(); // Gets String
departStation = departStationinput.ToUpper(); // Converts String into UPPER CASE
/*Need to check if the string is matched in the ENUM and return a variable/Value for it*/
}
return departStation;
}