Re: Ordered Name/Value pair
Phillip Holmes <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <003a01c6b061$fa47bec0$0200a8c0@core> |
Dino,
Look in System.Collections.Specialized.
NameValueCollection stFoo = new NameValueCollection();
stFoo.Add("akey", "value1");
stFoo.Add("akey", "value2");
stFoo.Add("akey", "value3");
stFoo.Add("bkey", "value1");
stFoo.Add("bkey", "value2");
stFoo.Add("bkey", "value3");
string[] a_foo = stFoo.GetValues("akey");
foreach (string it in a_foo)
{
Console.WriteLine(it);
}
string[] b_foo = stFoo.GetValues("bkey");
foreach (string it in b_foo)
{
Console.WriteLine(it);
}
Warmest Regards,
Phillip B. Holmes
http://phillipholmes.com
214-995-6175 (cell)
================>
>Is there another class that uses Name/Value pairs but doesn't change your
order?
TIA
Dino
===================================
This list is hosted by DevelopMentor. http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 7/17/2006
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 7/17/2006
--
Internal Virus Database is out-of-date.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.1/390 - Release Date: 7/17/2006
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com