so basically I have a class that similar to the following but much longer
Public Class inventory
Public Property id As Integer
Public Property name As String
End Class
and in other class I have a list of called order of class inventory so when I loop over the list I can do as
For Each i In orders
Console.WriteLine(i.name)
Next
but I want a variable to be in the spot . so like
Dim rrr As String = Console.ReadLine()
For Each i In orders
Console.WriteLine(i.rrr)
Next
however I get error as rrr is not a member in inventory! so please any one know how to solve that and be able to access the class from a variable let me know Thanks