update generic list with values from another generic list using multiple column join

I have two genric lists, I need to update the vlaues in one generic list with values fom another

List1
ID
DATE
Return


List2
ID
DATE
Value

There could be no values for List1 in list2 but I need to get default or empty values
LVL 1
countrymeisterAsked:
Who is Participating?
 
unknown_routineCommented:
You can not put different types inside a "generic list".

By Generic, do you refer to a Generic list? For example:


 Dim lstItems As List(Of String) = New List(Of String)


You can however create a class with ID, Date, Value as its properties and add it to a generic list.

Please clarify your question.
0
 
unknown_routineCommented:
How did you define these lists? are these both list of Strings?
0
 
countrymeisterAuthor Commented:
ID int
Date datetime
Value decimal


ID int
Date DateTime
Return decimal
0
 
countrymeisterAuthor Commented:
Maybe I did not put my question more clearly.
I need to update values in one list based on the values in the other

The ID is the join field and so is the Date, I want to update the Value field with that of the return
0
 
countrymeisterAuthor Commented:
Could not understand my question and did not povide a good solution
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.