运行此代码时,我收到错误:
错误 1“EPSInvoice_ServiceLibrary.EPS_Service.tr_bl”是一个“字段”,但用作“方法”
它在 VS.net 中运行良好,但我正在转换为 C#。任何帮助,将不胜感激。谢谢
这是代码:
public class EPS_Service : IEPS_Service
{
List<input_params> Users = new List<input_params>();
List<token_data> token_data = new List<token_data>();
public decimal cal;
object tr_bl;
string branch;
public void User_Login(input_params inputparams)
{
EPS30Ora.EPS30Svr svr = new EPS30Ora.EPS30Svr();
if (svr.LogOnEx("EDEESTE", inputparams.VSID, inputparams.Username, inputparams.Password, "EPS30Ora", ref inputparams.ck) == 0)
{
try
{
Users.Add(inputparams);
svr.PrepareByMoney(inputparams.ck, 1, inputparams.meter_number, 10, 0, ref cal);
tr_bl = svr.GetInvoiceData(inputparams.ck, svr.Confirm(inputparams.ck));
branch = tr_bl(0)(1);
token_data.Add(new token_data() { transfer_number = "0000000" });
}
catch (System.Runtime.InteropServices.COMException ex)
{
}
}
}