0n1

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

private void Load_Control_ReCombine<T>(List<T> list, string propertyName, string RecombineID)
{
try
{
FieldInfo fieldInfo = typeof(T).GetField(propertyName);
foreach (T te in list)
{
string LabelID = (string)(fieldInfo.GetValue(te));

catch (Exception error)
{
MessageBox.Show(error.Message);
}
}

posted on 2020-11-12 09:08  Micah-0n1  阅读(65)  评论(0)    收藏  举报