المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Continued Values Collection/List/Dictionary



C# Programming
12-17-2009, 05:11 PM
I am learning further in C# and came across a special requirement of collections. I wonder if such implementations exists.

I need a list with a key and multiple values. After the first entry, next entries can be partial only to denote a change. Something like this:


index value1 value2 value3 Result value1 value2 value3
1 100 200 300 - 100 200 300
2 200 - 100 200 200
3 150 300 - 150 200 300
4 250 - 150 250 300
5 100 200 - 100 200 300


This can be achieved using DataTable and using select statements/compute etc. But, is there a simpler option available? Speed is the key here.