+ 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?
3 Respostas
+ 5
these are collection with special behavior:
FIFO (First In First Out):example stack
LIFO (Last In First Out):example linked list
+ 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"]
+ 2
@Highman
Yes i know what it stands for but i don't know how to use it
@Melih
thanks for explanation 😃