using System;var man = new Man("Alex"); Console.WriteLine(man.Name);//在 12 版本中:class Man(string name){ public string Name { get; set; } = name;}