Mombu the Programming Forum

Mombu the Programming Forum > Programming > Programming languages > class Dictionary
REGISTER NOW! Mark Forums Read




Reply
 
Thread Tools Display Modes
1 20th April 16:57
madsiro
Miembro
Mombu User
 
Join Date: Apr 2008
Location: Peru
Posts: 1
madsiro is on a distinguished road
Default class Dictionary



Hi, I'm programming in C #, and I have a question about the class dictionary, I know that this work as a hash table, but I would like to know how that hash function uses (or which is the one that could use), and that size is its table, here is an example of Dictionary, and here is my question.
Code:
private static Dictionary<string, double> PrepareFrequency(string[] words) { Dictionary<string, double> table = new Dictionary<string, double>(); foreach (string word in words) { if (table.ContainsKey(word)) table[word]++; else table.Add(word, 1); } return table; }
Thanks for your attention.
madsiro is offline   Reply With Quote
SPONSORED LINKS BY GOOGLE

 


Reply


Thread Tools
Display Modes







Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
Also visit Ogoun the Usenet Archive
666