Greetings all,
I've been going through a project that was orignially done in C# and converting it to vb.net (the original coder quit the project so I'm taking over and I dont much care for C#). Anyway, I'm down to 3 errors and they are all basically the same, it has to do with the sortedlist object.
The original line of code was this:
(list = this.m_dDamagePoints)[time = parsedLine.TimeStamp] = list[time] = parsedLine.Damage;
where:
list and m_dDamagePoints is a Sortedlist(Of Datetime, Long)
My question is, what is that line of c# code actually doing, and as a bonus, what would be the vb.net equivalent?
I ran it through a c# to vb.net converter and it came up with:
list = Me.m_dDamagePoints.Item(time = parsedLine.TimeStamp) = (list.Item(time) + parsedLine.Damage)
which is not valid of course. any ideas?
I've been going through a project that was orignially done in C# and converting it to vb.net (the original coder quit the project so I'm taking over and I dont much care for C#). Anyway, I'm down to 3 errors and they are all basically the same, it has to do with the sortedlist object.
The original line of code was this:
(list = this.m_dDamagePoints)[time = parsedLine.TimeStamp] = list[time] = parsedLine.Damage;
where:
list and m_dDamagePoints is a Sortedlist(Of Datetime, Long)
My question is, what is that line of c# code actually doing, and as a bonus, what would be the vb.net equivalent?
I ran it through a c# to vb.net converter and it came up with:
list = Me.m_dDamagePoints.Item(time = parsedLine.TimeStamp) = (list.Item(time) + parsedLine.Damage)
which is not valid of course. any ideas?