+ 3

What is Dictionary, queue and stack in C#?

I don't really understand what are those. I know they are generic collections. And what is FIFO and LIFO?

17th Aug 2017, 2:58 PM
Damon Keane
3 odpowiedzi
+ 5
these are collection with special behavior: FIFO (First In First Out):example stack LIFO (Last In First Out):example linked list
17th Aug 2017, 3:59 PM
Highman
Highman - avatar
+ 5
FIFO = First In First Out LIFO= Last In First Out Dictionary is an array which has keys and values in basic.Let me explain : Dictionary<string, int> d = new Dictionary<string, int>() { {"cat", "meow"}, {"dog", "woof"}, {"lion", "graaw"}, {"fish", "blopblooop"} }; instead of camping with index number array [0] you call by index d["cat"]
17th Aug 2017, 4:04 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 2
@Highman Yes i know what it stands for but i don't know how to use it @Melih thanks for explanation 😃
17th Aug 2017, 4:33 PM
Damon Keane