C# Class System.Collections.ArrayList

Inheritance: System.Collections.IEnumerable, System.Collections.IList, System.ICloneable
Show file Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Adapter ( IList list ) : ArrayList
Add ( Object value ) : int
AddRange ( ICollection c ) : void
ArrayList ( ) : System.Security
ArrayList ( ICollection c ) : System.Security
ArrayList ( int capacity ) : System.Security
BinarySearch ( Object value ) : int
BinarySearch ( Object value, IComparer comparer ) : int
BinarySearch ( int index, int count, Object value, IComparer comparer ) : int
Clear ( ) : void
Clone ( ) : Object
Contains ( Object item ) : bool
CopyTo ( Array array ) : void
CopyTo ( Array array, int arrayIndex ) : void
CopyTo ( int index, Array array, int arrayIndex, int count ) : void
FixedSize ( ArrayList list ) : ArrayList
FixedSize ( IList list ) : IList
GetEnumerator ( ) : IEnumerator
GetEnumerator ( int index, int count ) : IEnumerator
GetRange ( int index, int count ) : ArrayList
IndexOf ( Object value ) : int
IndexOf ( Object value, int startIndex ) : int
IndexOf ( Object value, int startIndex, int count ) : int
Insert ( int index, Object value ) : void
InsertRange ( int index, ICollection c ) : void
LastIndexOf ( Object value ) : int
LastIndexOf ( Object value, int startIndex ) : int
LastIndexOf ( Object value, int startIndex, int count ) : int
ReadOnly ( ArrayList list ) : ArrayList
Remove ( Object obj ) : void
RemoveAt ( int index ) : void
RemoveRange ( int index, int count ) : void
Repeat ( Object value, int count ) : ArrayList
Reverse ( ) : void
Reverse ( int index, int count ) : void
SetRange ( int index, ICollection c ) : void
Sort ( ) : void
Sort ( IComparer comparer ) : void
Sort ( int index, int count, IComparer comparer ) : void
Synchronized ( ArrayList list ) : ArrayList
Synchronized ( IList list ) : IList
ToArray ( ) : Object[]
TrimToSize ( ) : void
this ( int index ) : Object

Private Methods

Method Description
ArrayList ( bool trash ) : System.Security
EnsureCapacity ( int min ) : void
ReadOnly ( IList list ) : IList
ToArray ( Type type ) : Array

Method Details

Adapter() public static method

public static Adapter ( IList list ) : ArrayList
list IList
return ArrayList

Add() public method

public Add ( Object value ) : int
value Object
return int

AddRange() public method

public AddRange ( ICollection c ) : void
c ICollection
return void

ArrayList() public method

public ArrayList ( ) : System.Security
return System.Security

ArrayList() public method

public ArrayList ( ICollection c ) : System.Security
c ICollection
return System.Security

ArrayList() public method

public ArrayList ( int capacity ) : System.Security
capacity int
return System.Security

BinarySearch() public method

public BinarySearch ( Object value ) : int
value Object
return int

BinarySearch() public method

public BinarySearch ( Object value, IComparer comparer ) : int
value Object
comparer IComparer
return int

BinarySearch() public method

public BinarySearch ( int index, int count, Object value, IComparer comparer ) : int
index int
count int
value Object
comparer IComparer
return int

Clear() public method

public Clear ( ) : void
return void

Clone() public method

public Clone ( ) : Object
return Object

Contains() public method

public Contains ( Object item ) : bool
item Object
return bool

CopyTo() public method

public CopyTo ( Array array ) : void
array Array
return void

CopyTo() public method

public CopyTo ( Array array, int arrayIndex ) : void
array Array
arrayIndex int
return void

CopyTo() public method

public CopyTo ( int index, Array array, int arrayIndex, int count ) : void
index int
array Array
arrayIndex int
count int
return void

FixedSize() public static method

public static FixedSize ( ArrayList list ) : ArrayList
list ArrayList
return ArrayList

FixedSize() public static method

public static FixedSize ( IList list ) : IList
list IList
return IList

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

GetEnumerator() public method

public GetEnumerator ( int index, int count ) : IEnumerator
index int
count int
return IEnumerator

GetRange() public method

public GetRange ( int index, int count ) : ArrayList
index int
count int
return ArrayList

IndexOf() public method

public IndexOf ( Object value ) : int
value Object
return int

IndexOf() public method

public IndexOf ( Object value, int startIndex ) : int
value Object
startIndex int
return int

IndexOf() public method

public IndexOf ( Object value, int startIndex, int count ) : int
value Object
startIndex int
count int
return int

Insert() public method

public Insert ( int index, Object value ) : void
index int
value Object
return void

InsertRange() public method

public InsertRange ( int index, ICollection c ) : void
index int
c ICollection
return void

LastIndexOf() public method

public LastIndexOf ( Object value ) : int
value Object
return int

LastIndexOf() public method

public LastIndexOf ( Object value, int startIndex ) : int
value Object
startIndex int
return int

LastIndexOf() public method

public LastIndexOf ( Object value, int startIndex, int count ) : int
value Object
startIndex int
count int
return int

ReadOnly() public static method

public static ReadOnly ( ArrayList list ) : ArrayList
list ArrayList
return ArrayList

Remove() public method

public Remove ( Object obj ) : void
obj Object
return void

RemoveAt() public method

public RemoveAt ( int index ) : void
index int
return void

RemoveRange() public method

public RemoveRange ( int index, int count ) : void
index int
count int
return void

Repeat() public static method

public static Repeat ( Object value, int count ) : ArrayList
value Object
count int
return ArrayList

Reverse() public method

public Reverse ( ) : void
return void

Reverse() public method

public Reverse ( int index, int count ) : void
index int
count int
return void

SetRange() public method

public SetRange ( int index, ICollection c ) : void
index int
c ICollection
return void

Sort() public method

public Sort ( ) : void
return void

Sort() public method

public Sort ( IComparer comparer ) : void
comparer IComparer
return void

Sort() public method

public Sort ( int index, int count, IComparer comparer ) : void
index int
count int
comparer IComparer
return void

Synchronized() public static method

public static Synchronized ( ArrayList list ) : ArrayList
list ArrayList
return ArrayList

Synchronized() public static method

public static Synchronized ( IList list ) : IList
list IList
return IList

ToArray() public method

public ToArray ( ) : Object[]
return Object[]

TrimToSize() public method

public TrimToSize ( ) : void
return void

this() public method

public this ( int index ) : Object
index int
return Object