Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET: Non-generic for KeyValuePair<string, string>?

Tags:

c#

.net

I could've sworn that before System.Collections.Generic, there was a class that was effectively KeyValuePair<string, string>.

In other words, it was an object with one two members: a name or key, and value, and both were typed as strings.

Anyone know what I'm referring to?

like image 717
AgileMeansDoAsLittleAsPossible Avatar asked Nov 22 '25 03:11

AgileMeansDoAsLittleAsPossible


2 Answers

Its properties are objects (not strings), but maybe you're looking for DictionaryEntry because it's the object type returned when you iterate a StringDictionary.

like image 175
Gabe Avatar answered Nov 23 '25 18:11

Gabe


The class you are looking for is the StringDictionary.

http://msdn.microsoft.com/en-us/library/system.collections.specialized.stringdictionary.aspx

like image 31
Dennis Burton Avatar answered Nov 23 '25 16:11

Dennis Burton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!