私はvb.netを初めて使い、foreachで2つの値を返したいと思いますか?その必要性に合うことができるオブジェクトのトンがありvb.net foreachで2つの値を返す
For Each item In Function()
test1 = I would like to get the result1 here
test2 = I would like to get the result2 here
Next
Private Function Function() As String
Dim result1 As String
Dim result2 As String
result1 = "Test"
result2 = "Test2"
Return result1
End Function
[タプル](https://msdn.microsoft.com/en-us/library/dd268536(v = vs.110).aspx)をお探しですか? –
KeyValuePairは別のソリューションです。または(Stringの)配列。または、(Stringの)or、or、orのリスト – muffi