I have a class like this
Public Class Class1
Public Class Token
Public TokenString As String
Public TokenValue As Double
End Class
End Class
in my code I fill an array of these classes like this
Dim Tokens As New ArrayList
Dim token As Class1.Token= New Class1.Token
token.TokenString= "APPEAL"
token.TokenValue = 2.0
Tokens.Add(token)
token.TokenString = "APPEALING"
token.TokenValue = 2.0
Tokens.Add(token)
token.TokenString = "APPLAUD"
token.TokenValue = 2.0
Tokens.Add(token)
token.TokenString = "ATTRACTIVE"
token.TokenValue = 2.0
Tokens.Add(token)
Now what I want to do is to retreive the TokenValue for the token
string "Attractive"
Can anyone tell me how to do this?
Thanks