Can a dictionary have duplicate keys c#?



Can a dictionary have duplicate keys c#?..

Answer / Ranjeet Choudhary

No, a C# Dictionary cannot have duplicate keys. If you attempt to add a key that already exists, the Dictionary will replace the existing value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is class sortedlist underneath?

1 Answers  


Does c# support properties of array types?

1 Answers  


What is console readkey in vb net?

1 Answers  


What are some examples of desktop applications?

1 Answers  


What is the difference between dynamic and var in c#?

1 Answers  


What are PE(Portable Executable)?

1 Answers   MCN Solutions,


What is namespace in oops?

1 Answers  


What’s thread.sleep() in threading ?

1 Answers  


Why dictionary is faster than list?

1 Answers  


How do you determine whether a string represents a numeric value?

1 Answers  


What is an example of delegation?

1 Answers  


Name the connections does microsoft sql server support?

1 Answers  


Categories