using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace color //利用枚举定义颜色并赋值
{
class Program
{
enum color
{
red = 10, blue = red, white = 100, green = white, black = 100
}
static void Main(string[] args)
{
Console.WriteLine("枚举颜色完毕!");
}
}
}