By tag: ArrayList
0
kicks
C# Working With ArrayList: What is the best Iterator choice?
When you first look at which statement to use to iterate through an ArrayList collection, the foreach statement stands out. It's syntax is concise and readable as well as no extra lines of code are needed to extract the element you want to work with. But...[pause for effect]...if the collection is...
0
kicks
Returning an ArrayList of Custom Objects From a Web Service
Looking for some help in passing an ArrayList of custom objects back through a web service.
0
kicks
C# ArrayList
The thirty-seventh part of the C# Fundamentals tutorial describes the use of the ArrayList class. This general-purpose collection class provides the ability to create and manipulate a group of related objects as if they were a variable-length array.
0
kicks
Performance of foreach vs. List.ForEach
Today I was iterating a List<int> using a foreach-loop and feeling a bit smug in knowing how much more performance-conscious I was being than if I'd tried doing the same thing with an ArrayList filled with ints. Thanks to the wonder of generics, the C# compiler neatly avoids numerous boxing op...