Help with Dictionary object using C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi All,

I have been trying to come up with most efficient logic/ solution for my problem.
Below is my problem - and trying to understand what is the best approach
I have Dictionary object which save string and class as key value pair. As key need to be distinct , I am suffixing deal with count for key and class details.
for. Eg
My Class stores basic deal details ie, deal id, trade id, etc... - say below is simpe Key valye pair
Key, Value ( deal class)
D1_01, {D1, T1, dt1, dt2, etc..}
D1_02, {D1,T2,dt1,dt2,etc..}
D1_03, {D1,T3,dt1,dt2,etc..}
D2_01 {D2,T1,dt1,dt2,etc..}
D3_01 {D3,T1,dt1,dt2,etc..}
D2_02 {D2,T3,dt1,dt2,etc..}
My problem now as I already have above class, I am trying to save Deal Trades combination ie, one deal and many trade and other detais as below.. Trying to undestand best possible approach / algorithm to be implimented?

Key , Value
D1 , {{T1,dt1,dt2,etc..},{T2,dt1,dt2,etc..},{T3,dt1,dt2,etc...}}
D2, {{T1,dt1,dt2,etc..},{T3,dt1,dt2,tct..} }
D3 , {T1,dt1,dt2,etc..}
Trying to understand wht is the best approach I should be impliment? Any pointer / code examples would be great help.
Regards,





<br/>

View the full article
 
Back
Top