Advertisement
ChaosTheosis

Dictionary

Jan 28th, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.57 KB | None | 0 0
  1. //Dictionary is like arrays but it can store more than 1 type, like int, string, double, bool etc.
  2.  
  3. Dictionary<Type, Type> dictionaryName = new Dictionary<Type, Type>();
  4.  
  5. //So now lets look at these filled in.
  6.  
  7. Dictionary<string, string> dictionary = new Dictionary<string, string>();
  8.  
  9. //Now u add the stuff to add into it, like:
  10.  
  11. dictionary.Add("Lamo", "SikSkillzBruv");
  12.  
  13. //At the start of your dictionary.Add, the part before the add is your dictionary name.
  14.  
  15. //Lets lets use 2.
  16.  
  17. Dictionary<string, int> Lamo = new Dictionary<string, int>();
  18.  
  19. Lamo.Add("XDDD", 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement