namespace Ch05Ex02
{
enum orientation : byte
{
north = 1,
south = 2,
east = 3,
west = 4
} class Program
{
static void Main(string[] args)
{
orientation myDirection = orientation.north; Console.WriteLine("myDirection = {0}", myDirection);
Console.ReadKey();
}
}
}
其中 orientation myDirection = orientation.north;这一条语句什么意思,有什么作用?求解
{
enum orientation : byte
{
north = 1,
south = 2,
east = 3,
west = 4
} class Program
{
static void Main(string[] args)
{
orientation myDirection = orientation.north; Console.WriteLine("myDirection = {0}", myDirection);
Console.ReadKey();
}
}
}
其中 orientation myDirection = orientation.north;这一条语句什么意思,有什么作用?求解
DayOfWeek today = DayOfWeek.Monday;