Dictionary<int,int> dic = new Dictionary<int,int>();
What is the difference between below to approach to add key, value to dictionary?
dic[key]=value;
dic[key]=value1; //its allowing me to update the value for the same key. No error.
vs
dic.Add(key,value);
dic.Add(key,value1); //it doesn't allow to update the value to the key as key already exists.