I need to store a list of key value pairs. The key value pair will be used by multiple classes, so ideally its something like a list of a structure I define.
Public Structure Person
Public ID As Integer
Public Weight As Decimal
End Structure
'all use Person
class census
class importpeople
class determinebestdiet
etc
- I need to sort by value
- I need to remove a person (by Person.ID) or add a new key value pair (and re-sort after each add)
- I need to sum the total of all values
Seems like often people use dictionaries and then hack around.