I have a List (Of Hardware) - The list is called HWModels
Class equipment has the following properties:
- ModelName
- Status
- CPUStatus
- Memorystatus
- Diskstatus
The list is populated by reading the CSV file, after filling it I want to return individual records based on ModelName
I tried to do it as follows:
(From a In HWModels Select a.ModelName).Distinct
But this is not correct, because I get a list of only ModelName and nothing more.
How do I get the Distinct function to return all other class members to a list?
source share