Answer the question
In order to leave comments, you need to log in
Why doesn't it check if the key is in the dictionary?
here is my dictionary
private Dictionary<int, int> CellsMoove = new Dictionary<int, int>();
int Num1 = 1;
int Num2 = 2;
if(!CellsMoove.ContainsKey(Num1)) CellsActive.Add(Num1, Num2); else CellsMoove[Num1] = Num2;
Argument 2: cannot convert from 'int' to 'bool'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question