这段vb如何转c#
popu2 2002-05-31 11:09:04 Dim Found As Boolean = False
Dim MyObject, MyCollection As Object
For Each MyObject In MyCollection ' Iterate through elements.
If CStr(MyObject.Text) = "Hello" Then ' If Text equals "Hello"
Found = True ' Set Found to True.
Exit For ' Exit loop.
End If
Next