dynamic 取值

  • 149
  • 0

dynamic 取值

foreach (dynamic item in list)
{
    string Name = item.GetType().GetProperty("Name").GetValue(item, null);
}