📅  最后修改于: 2022-03-11 14:48:54.756000             🧑  作者: Mango
代码示例2
SomeObject.GetType().GetProperties().ToList().ForEach(x => Console.WriteLine($"{x.Name} = {x.GetValue(SomeObject, null)}"));