将一个ClassLibrary (dll) 发布为web service
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;
在某一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;
http://www.donghaisoft.com
易学之家,八字,六爻,风水,奇门遁甲,六壬,金口诀,周易,阳宅风水,风水堪舆,张锋,风水罗盘指南针