Scott Weston [mailto:[EMAIL PROTECTED]] wrote:
> Is there a way to get a value out of an arraylist like in an > indexed array w/o enumerating? An ArrayList has an indexer just like an array, so you just do: <codeSnippet language="C#"> ArrayList myArrayList = new ArrayList; ... populate the array list somehow ... // Get the fifth item out of the ArrayList object fifthItem = myArrayList[5]; </codeSnippet> HTH, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.