//使用dynamic的写法
dynamic fileExplorerData = _currentFolder.FileExplorerData;
var data = fileExplorerData.InsertFromPath(newPath);

//使用反射的写法
MethodInfo InsertMethod = _currentFolder.FileExplorerData.GetType().GetMethod("InsertFromPath");
var fileExplorerData = InsertMethod.Invoke(_currentFolder.FileExplorerData, new object[] { newPath });
var data = fileExplorerData as FileExplorerData;

 

相关文章:

  • 2021-09-22
  • 2021-06-10
  • 2022-12-23
  • 2021-08-15
  • 2022-02-13
  • 2021-11-11
  • 2021-07-06
猜你喜欢
  • 2021-08-29
  • 2021-07-08
  • 2022-12-23
  • 2021-09-20
  • 2022-12-23
  • 2021-07-12
  • 2022-02-14
相关资源
相似解决方案