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

مشاهدة النسخة كاملة : Dictionary list



C# Programming
01-06-2010, 08:22 AM
Hey,

I have a list of 'connections' between stuff that's identified by id's. I'd be nice if I could access this stuff by doing myList[id1, id2]. Is this possible?

If the above is possible, is there a way to catch unknown combinations of id's, so I can create an instance of my stuff and return that?

Cheers!

Jeroen De Dauw
---
Forums (http://code.bn2vs.com/) ; Blog (http://blog.bn2vs.com/) ; Wiki (http://wiki.bn2vs.com/)
---
70 72 6F 67 72 61 6D 6D 69 6E 67 20 34 20 6C 69 66 65!