나는 vb.net을 처음 사용하기 때문에 foreach에서 두 개의 값을 반환하고 싶습니다. 도와 주실 수 있습니까? 그 필요에 맞게 수있는 객체의 톤이있다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, 또는 ... – muffi