Type type = typeof(Class.PlacemarkRender);
FieldInfo fieldInfo = type.GetField("_placemarkDic", BindingFlags.Instance | BindingFlags.NonPublic);

Dictionary<string, List<string>> dict = fieldInfo.GetValue(_placemarkRenderN) as Dictionary<string, List<string>>;

object variableValue = fieldInfo.GetValue(_placemarkRenderN);

IEnumerable<object> list = variableValue as IEnumerable<object>;

if (list != null)
{
foreach (var item in list)
{
if (value.Equals(item.GetType().GetProperty(PropertyName).GetValue(item, null).ToString()))
{
result = item.GetType().GetProperty(CheckPropertyName).GetValue(item, null).ToString();
}
}
}

相关文章:

  • 2021-06-16
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
  • 2021-08-21
  • 2021-10-28
  • 2021-12-16
相关资源
相似解决方案