小编use*_*748的帖子

c#中的参数

我有一些参数正在通过,但有一些铸造问题,我想知道什么是最好的方法来做到这一点.

ReportExecution2005.ParameterValue[] parameters
parameters[0].Label = "reportID";
parameters[0].Value = "5";   /* I want to pass a variable here not an actual string value -- I want it to be of type int. I tried to cast with no luck*/
parameters[1].Label = "ReportName";
parameters[1].Value = reportName;
parameters[2].Value = reportID.ToString;
Run Code Online (Sandbox Code Playgroud)

c# parameters casting

0
推荐指数
1
解决办法
105
查看次数

标签 统计

c# ×1

casting ×1

parameters ×1