dictionary
dict.add(34,"ABC");
dist.add(34,"XYZ")
foreach(int i in dist.key)
{}
console.writeline("Key"+i+"value"+dist[i])
dictionary
dict.add(34,"ABC");
dist.add(34,"XYZ")
foreach(int i in dist.key)
{}
console.writeline("Key"+i+"value"+dist[i])
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Amit Kumar SinghPosted Jul 3, 2021, 9:55 AM
Sachin SinghPosted Jul 3, 2021, 9:29 AM
Rajanikant HawaldarPosted Jul 3, 2021, 9:15 AM
https://www.c-sharpcorner.com/uploadfile/mahesh/dictionary-in-C-Sharp/
your adding duplicate key 34, keys are unic in dictoinary
Arnab MukherjeePosted Jul 3, 2021, 8:57 AM
Satya KarkiPosted Jul 3, 2021, 8:48 AM