using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace enums { class Program { static void Main(string[] args) { Console.WriteLine((byte)Color.Yellow) ; Console.WriteLine((byte)Color.Brown); Console.ReadKey(); } } enum Color:byte { Yellow, Blue, Brown, Green } enum Shades:Color { } }
Quote:error CS1008: Type byte, sbyte, short, ushort, int, uint, long or ulong expected
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)