📜  c#循环类属性添加到数组 - C#代码示例

📅  最后修改于: 2022-03-11 14:48:39.691000             🧑  作者: Mango

代码示例1
Record record = new Record();

PropertyInfo[] properties = typeof(Record).GetProperties();
foreach (PropertyInfo property in properties)
{
    property.SetValue(record, value);
}