asp代码转成C#,谢谢!
Set FD = Server.CreateObject("IBECOM.FD")
Set Rfd = FD.FindPrice2("CAN","HAK","2013-11-11","ALL","","NULL")
For I= 0 To Rfd.ElementNum - 1
response.write Rfd.cabinType(I)
Next
怎么转成C#的,先谢谢了
C# 里 FindPrice 是 FD 类下的方法
------解决方案--------------------项目-添加引用-COM组件,找到IBECOM.FD添加进来即可。
------解决方案--------------------c# 里比较麻烦哦
http://bbs.csdn.net/topics/60161013
------解决方案--------------------
using system;
using IBECOM;
FD fd=new FD();//類FD中的構造方法是否有參數,自己添加。
var Rfd=fd.FindPrice2("CAN","HAK","2013-11-11","ALL","","NULL");//這里不知道你返回什么類型就只能用var
foreach(var item in Rfd)
{
Console.WriteLine(item);
}