WEB METHOD中读取配置文件反射生成

在某一WEB METHOD中,被调用返回一个STRING
Assembly a = Assembly.LoadFile(@"E:\JasonBackUp\StorePictureIntoSql\MyDll\bin\Debug\MyDll.dll");
Type t = a.GetType("MyDll.Class1");
string b = "";
b = t.GetField("Number").GetValue(b).ToString();
return b;

相关文章:

  • 2022-12-23
  • 2021-08-31
  • 2021-12-09
  • 2022-03-03
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2021-09-20
  • 2022-12-23
  • 2021-07-20
  • 2022-02-12
  • 2021-10-15
  • 2021-11-13
相关资源
相似解决方案