static void Main(string[] args) { //Console.WriteLine("Hello World!"); #region 实现单例模式 //实现单例模式 var person = Person.CreateInstance(); var body = new Body(3, 4); (int height, int weight) = body; Console.WriteLine(height + " " + weight); Console.WriteLine("======================"); #endregion foreach (var item in Enum.GetNames(typeof(Color))) { Console.WriteLine(item); } Console.WriteLine("================"); foreach (int item in Enum.GetValues(typeof(Color))) { Console.WriteLine(item); } }