函数为:void Test(string input,out string outVal);怎么调用? 我用:
string tmpVal;
Test("good",tmpVal);或者 Test("good",@tmpVal);
编译都通不过,到底该怎么用?
string tmpVal;
Test("good",tmpVal);或者 Test("good",@tmpVal);
编译都通不过,到底该怎么用?
解决方案 »
- 【emit】能否用“PropertyBuilder”为已经存在的类增加属性
- 关于C#调试C++写的OCX的问题
- 提取和更新问题
- 如何实现以指定用户执行外部程序?
- 对于引用类型不清楚,求解这样的代码是不是需要改善(<100行)
- 请问在datagridboolcolumn中怎么样把第三个状态DBNull去掉? 谢谢!
- c# winforms程序发布时,如何制定日志文件存放地址
- 在WEB页面中GRIDVIEW问题
- 【C#】如何在dataset中创建一张新表..
- 求C#.net 职位,可以是WEB 开发,或是智能手机开发
- Web Form 中,Treeview的节点check被选中,如何让它下面的子节点也选中?
- .Net初学者问题,开发Windows Forms应用程序,.Net相比VS6有什么优势和劣势?
Test("good",out tmpVal);
void Test(string input,out string outVal);
string tmpVal;
Test("good",out tmpVal);//ref
void Testref(string input,ref string outVal);
string tmpValref="";
Test("good",ref tmpValref);
保证对