• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 526
  • Last Modified:

How to use IDictionary?

If I have a DataSet, I use the following code to retrive the value in DataSet:
------------------------------------------------------------------------------------------
DataSet dsScore = new ScoreBO().getScore(G, T); //coz getScore has been defined as DataSet
DataView viewScore = dsScore.Tables[0].DefaultView;
itemSetScore = dsScore.Tables[0];  //where itemSetScore is defined as DataTable
------------------------------------------------------------------------------------------
what if now the getScore(G,T) has been defined as IDictionary, how can I get the value from IDictionary
like what I do in DataSet?
thank you.
0
Cola78
Asked:
Cola78
  • 3
1 Solution
 
sachiekCommented:
0
 
Cola78Author Commented:
sorry, i stil can't understand.
any clearer sample ?
thanks
0
 
sachiekCommented:
Well, IDictionary is inturn a Hashtable.

I guess if you are define with 2 coulms it will be helpful for you, else if more coulms you will have to consider dataset.


Sachi
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now