【发布时间】:2012-01-04 20:46:06
【问题描述】:
可能重复:
How can I return multiple values from a function in C#?
C# 方法总是这样:
public <return type> funName()
{
//do sth
return someValueformatedasReturnType;
}
如何从 1 个 c# 方法返回 2 个值? 这是一个面试问题,你知道的很多。谢谢!
【问题讨论】:
-
那么你的答案是什么?
-
我回答了/引用类/结构,我只是觉得它可能有更多方法可以达到它(我在这里得到了“元组”)。所以我在这里问问题,我不知道为什么这么多投反对票,,,,,,,,,,,diu
标签: c#