Guest User

Untitled

a guest
Apr 22nd, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. public void AddElements()
  2. {
  3. int collectionLength = Int32.Parse(Console.ReadLine());
  4. for (int key = 0; key < collectionLength; key++)
  5. internalHashtable.Add(RandomClass.CreateRandomString(), key);
  6. }
  7.  
  8. public void ShowElements()
  9. {
  10. foreach (var s in internalHashtable)
  11. Console.WriteLine("{0}t", s);
  12. }
  13.  
  14. public void ShowElements()
  15. {
  16. foreach (DictionaryEntry s in internalHashtable)
  17. Console.WriteLine("{0}:t{1}", s.Key, s.Value);
  18. }
Add Comment
Please, Sign In to add comment