Nafri,
It depends on what kind of collection you have, ArrayList has a ToArray
method, if your collection is based on ArrayList either directly or
indirectly (CollectionBase) you can leverage this method.
ArrayList has AddRange & a constructor that accepts a collection, you could
indirectly (CollectionBase) leverage this methods to return the array back
to the collection.
If your collection is not based directly or indirectly on ArrayList, or have
similar methods, then you are correct, looping may be your only option.
Some collections, such as Hashtable, do not support he concept of an order,
so reversing them do not make sense per se.
Hope this helps
Jay
"nafri" <sp****@spam.net> wrote in message
news:F3**********************************@microsof t.com...
i have a colleciton that i need to reverse. Array has a reverse method. Is
their any direct way to transfer the items in the collection to an array
or
arraylist, reverse the array and transfer back them to the collection.
Or looping through each element is the only option.
TIA
nafri