M
Matthias Heise
Hello,
how can I walk through an associative Array in C#?
example array:
int[] arr = new Array();
int["bla"] = 5;
int["blabla"] = 10;
....
Now I need a method to determine which keys/indexers the array has. The
result has to be "bla" and "blabla" ... and not the values.
In PHP the function foreach($key=>$value in $arr) is used. But there's no
similar way in C#, or?
Thanks
Matthias
how can I walk through an associative Array in C#?
example array:
int[] arr = new Array();
int["bla"] = 5;
int["blabla"] = 10;
....
Now I need a method to determine which keys/indexers the array has. The
result has to be "bla" and "blabla" ... and not the values.
In PHP the function foreach($key=>$value in $arr) is used. But there's no
similar way in C#, or?
Thanks
Matthias