C# Class SupportClass.ListCollectionSupport, csharp-ldap

This class contains different methods to manage list collections.
Inheritance: System.Collections.ArrayList
Afficher le fichier Open project: EventStore/csharp-ldap Class Usage Examples

Méthodes publiques

Méthode Description
Add ( System valueToInsert ) : bool

Adds an object to the end of the List.

AddAll ( CollectionSupport collection ) : bool

Adds all the elements contained in the specified support class collection.

AddAll ( System collection ) : bool

Adds all the elements contained in the specified collection.

AddAll ( int index, CollectionSupport collection ) : bool

Adds all the elements contained into the specified support class collection, starting at the specified position.

AddAll ( int index, System list ) : bool

Adds all the elements contained into the specified collection, starting at the specified position.

ContainsAll ( CollectionSupport collection ) : bool

Verifies if all the elements of the specified collection are contained into the current collection.

ContainsAll ( System collection ) : bool

Verifies if all the elements of the specified collection are contained into the current collection.

Get ( int index ) : Object

Returns the element at the specified position in the list.

GetLast ( ) : Object

Gets the last value from a list.

IsEmpty ( ) : bool

Return whether this list is empty.

ListCollectionClone ( ) : Object

Creates a copy of the ListCollectionSupport.

ListCollectionSupport ( ) : System

Creates a new instance of the class ListCollectionSupport.

ListCollectionSupport ( System collection ) : System

Creates a new instance of the class ListCollectionSupport.

ListCollectionSupport ( int capacity ) : System

Creates a new instance of the class ListCollectionSupport with the specified capacity.

ListIterator ( ) : System.Collections.IEnumerator

Returns an iterator of the collection.

ListIterator ( int index ) : System.Collections.IEnumerator

Returns an iterator of the collection starting at the specified position.

RemoveAll ( CollectionSupport collection ) : bool

Removes all the elements contained into the specified collection.

RemoveAll ( System collection ) : bool

Removes all the elements contained into the specified collection.

RemoveElement ( int index ) : Object

Removes the value in the specified index from the list.

RemoveElement ( System element ) : bool

Removes an specified element from the collection.

RemoveFirst ( ) : Object

Removes the first value from an array list.

RemoveLast ( ) : Object

Removes the last value from an array list.

RetainAll ( CollectionSupport collection ) : bool

Removes all the elements that aren't contained into the specified collection.

RetainAll ( System collection ) : bool

Removes all the elements that aren't contained into the specified collection.

Set ( int index, System element ) : Object

Replaces the element at the specified position in this list with the specified element.

SubList ( int startIndex, int endIndex ) : ListCollectionSupport

Returns a new list containing a portion of the current list between a specified range.

ToArray ( System objects ) : System.Object[]

Obtains an array containing all the elements of the collection.

Method Details

Add() public méthode

Adds an object to the end of the List.
public Add ( System valueToInsert ) : bool
valueToInsert System The value to insert in the array list.
Résultat bool

AddAll() public méthode

Adds all the elements contained in the specified support class collection.
public AddAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be added.
Résultat bool

AddAll() public méthode

Adds all the elements contained in the specified collection.
public AddAll ( System collection ) : bool
collection System The collection used to extract the elements that will be added.
Résultat bool

AddAll() public méthode

Adds all the elements contained into the specified support class collection, starting at the specified position.
public AddAll ( int index, CollectionSupport collection ) : bool
index int Position at which to add the first element from the specified collection.
collection CollectionSupport
Résultat bool

AddAll() public méthode

Adds all the elements contained into the specified collection, starting at the specified position.
public AddAll ( int index, System list ) : bool
index int Position at which to add the first element from the specified collection.
list System The list used to extract the elements that will be added.
Résultat bool

ContainsAll() public méthode

Verifies if all the elements of the specified collection are contained into the current collection.
public ContainsAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be verified.
Résultat bool

ContainsAll() public méthode

Verifies if all the elements of the specified collection are contained into the current collection.
public ContainsAll ( System collection ) : bool
collection System The collection used to extract the elements that will be verified.
Résultat bool

Get() public méthode

Returns the element at the specified position in the list.
public Get ( int index ) : Object
index int Index of element to return.
Résultat System.Object

GetLast() public méthode

Gets the last value from a list.
public GetLast ( ) : Object
Résultat System.Object

IsEmpty() public méthode

Return whether this list is empty.
public IsEmpty ( ) : bool
Résultat bool

ListCollectionClone() public méthode

Creates a copy of the ListCollectionSupport.
public ListCollectionClone ( ) : Object
Résultat System.Object

ListCollectionSupport() public méthode

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( ) : System
Résultat System

ListCollectionSupport() public méthode

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( System collection ) : System
collection System The collection to insert into the new object.
Résultat System

ListCollectionSupport() public méthode

Creates a new instance of the class ListCollectionSupport with the specified capacity.
public ListCollectionSupport ( int capacity ) : System
capacity int The capacity of the new array.
Résultat System

ListIterator() public méthode

Returns an iterator of the collection.
public ListIterator ( ) : System.Collections.IEnumerator
Résultat System.Collections.IEnumerator

ListIterator() public méthode

Returns an iterator of the collection starting at the specified position.
public ListIterator ( int index ) : System.Collections.IEnumerator
index int The position to set the iterator.
Résultat System.Collections.IEnumerator

RemoveAll() public méthode

Removes all the elements contained into the specified collection.
public RemoveAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to extract the elements that will be removed.
Résultat bool

RemoveAll() public méthode

Removes all the elements contained into the specified collection.
public RemoveAll ( System collection ) : bool
collection System The collection used to extract the elements that will be removed.
Résultat bool

RemoveElement() public méthode

Removes the value in the specified index from the list.
public RemoveElement ( int index ) : Object
index int The index of the value to remove.
Résultat System.Object

RemoveElement() public méthode

Removes an specified element from the collection.
public RemoveElement ( System element ) : bool
element System The element to be removed.
Résultat bool

RemoveFirst() public méthode

Removes the first value from an array list.
public RemoveFirst ( ) : Object
Résultat System.Object

RemoveLast() public méthode

Removes the last value from an array list.
public RemoveLast ( ) : Object
Résultat System.Object

RetainAll() public méthode

Removes all the elements that aren't contained into the specified collection.
public RetainAll ( CollectionSupport collection ) : bool
collection CollectionSupport The collection used to verify the elements that will be retained.
Résultat bool

RetainAll() public méthode

Removes all the elements that aren't contained into the specified collection.
public RetainAll ( System collection ) : bool
collection System The collection used to verify the elements that will be retained.
Résultat bool

Set() public méthode

Replaces the element at the specified position in this list with the specified element.
public Set ( int index, System element ) : Object
index int Index of element to replace.
element System Element to be stored at the specified position.
Résultat System.Object

SubList() public méthode

Returns a new list containing a portion of the current list between a specified range.
public SubList ( int startIndex, int endIndex ) : ListCollectionSupport
startIndex int The start index of the range.
endIndex int The end index of the range.
Résultat ListCollectionSupport

ToArray() public méthode

Obtains an array containing all the elements of the collection.
public ToArray ( System objects ) : System.Object[]
objects System The array into which the elements of the collection will be stored.
Résultat System.Object[]