Complete set: Intro to C - Bill Buchanan
Complete set: Intro to C - Bill Buchanan
Complete set: Intro to C - Bill Buchanan
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
GetEnumera<strong>to</strong>r(int,int)<br />
GetEnumera<strong>to</strong>r()<br />
GetRange(int,int)<br />
IndexOf(object,int,int)<br />
IndexOf(object,int)<br />
IndexOf(object)<br />
Insert(int,object)<br />
LastIndexOf(object,int,int)<br />
LastIndexOf(object,int)<br />
LastIndexOf(object)<br />
Remove(object)<br />
RemoveAt(int)<br />
RemoveRange(int,int)<br />
Repeat(object,int)<br />
Reverse(int,int)<br />
Reverse()<br />
Sort()<br />
ToArray(System.Type)<br />
ToArray()<br />
TrimToSize()<br />
Returns an enumera<strong>to</strong>r for a range within the Array‐<br />
List.<br />
Returns an enumera<strong>to</strong>r for the entire ArrayList.<br />
Gets an ArrayList for a range within an ArrayList<br />
Returns the index value of an object within a given<br />
index range, and contains a specific number of occurrences.<br />
Returns the index value of an object from a given<br />
starting point<br />
Returns the index value of an object<br />
Inserts an object at a given index value.<br />
Returns the last index value of an object<br />
Returns the last index value of an object<br />
Returns the last index value of an object<br />
Remove the first occurrence of an object.<br />
Remove object at a certain index value.<br />
Remove a range of objects.<br />
Repeat a number of objects.<br />
Reverse objects within a given range.<br />
Reverse all the objects.<br />
Sort the ArrayList.<br />
Copies elements from ArrayList <strong>to</strong> a new array of a<br />
given type.<br />
Copies elements from ArrayList <strong>to</strong> a new array.<br />
Set the capacity of the ArrayList.<br />
And the properties for ArrayList are:<br />
duction <strong>to</strong> .NET<br />
<strong>Intro</strong><br />
Capacity<br />
Count<br />
IsFixedSize<br />
IsReadOnly<br />
Specifies the number of elements the ArrayList can<br />
have (<strong>set</strong>/get).<br />
Returns the number of elements in the ArrayList (get).<br />
Returns whether the ArrayList has a fixed size (get).<br />
Returns whether the ArrayList is read‐only (get).<br />
Program 3.6 shows an enhancement <strong>to</strong> Program 3.5, but uses ArrayLists instead of<br />
an array. For this uses the Add() <strong>to</strong> add a new element <strong>to</strong> the ArrayList. The Count<br />
property thus correctly contains the number of elements added <strong>to</strong> the ArrayList.<br />
Program 3.7: Program3_7_ArrayListGenerateDataWithCSV<br />
namespace ConsoleApplication2<br />
{<br />
using System;<br />
using System.Collections; // required for ArrayList<br />
using System.IO; // required for File I/O<br />
Agilent .NET Course: Arrays and Collections 13