top level statements C# - enum #5809
Unanswered
vongenae
asked this question in
Questions - Vragen
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to add an enum in a C# program in Dodona with top level statements?
The following code gives compilation errors in Dodona:
Console.WriteLine("Wie wint de schaakpartij?");
Console.WriteLine($"\t{Resultaat.Wit}");
Console.WriteLine($"\t{Resultaat.Zwart}");
Console.WriteLine($"\t{Resultaat.Remise}");
public enum Resultaat { Wit, Zwart, Remise };
Beta Was this translation helpful? Give feedback.
All reactions