C# Класс SupportClass.ListCollectionSupport, csharp-ldap

This class contains different methods to manage list collections.
Наследование: System.Collections.ArrayList
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Add() публичный Метод

Adds an object to the end of the List.
public Add ( System valueToInsert ) : bool
valueToInsert System The value to insert in the array list.
Результат bool

AddAll() публичный Метод

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.
Результат bool

AddAll() публичный Метод

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.
Результат bool

AddAll() публичный Метод

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
Результат bool

AddAll() публичный Метод

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.
Результат bool

ContainsAll() публичный Метод

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.
Результат bool

ContainsAll() публичный Метод

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.
Результат bool

Get() публичный Метод

Returns the element at the specified position in the list.
public Get ( int index ) : Object
index int Index of element to return.
Результат System.Object

GetLast() публичный Метод

Gets the last value from a list.
public GetLast ( ) : Object
Результат System.Object

IsEmpty() публичный Метод

Return whether this list is empty.
public IsEmpty ( ) : bool
Результат bool

ListCollectionClone() публичный Метод

Creates a copy of the ListCollectionSupport.
public ListCollectionClone ( ) : Object
Результат System.Object

ListCollectionSupport() публичный Метод

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( ) : System
Результат System

ListCollectionSupport() публичный Метод

Creates a new instance of the class ListCollectionSupport.
public ListCollectionSupport ( System collection ) : System
collection System The collection to insert into the new object.
Результат System

ListCollectionSupport() публичный Метод

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.
Результат System

ListIterator() публичный Метод

Returns an iterator of the collection.
public ListIterator ( ) : System.Collections.IEnumerator
Результат System.Collections.IEnumerator

ListIterator() публичный Метод

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.
Результат System.Collections.IEnumerator

RemoveAll() публичный Метод

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.
Результат bool

RemoveAll() публичный Метод

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.
Результат bool

RemoveElement() публичный Метод

Removes the value in the specified index from the list.
public RemoveElement ( int index ) : Object
index int The index of the value to remove.
Результат System.Object

RemoveElement() публичный Метод

Removes an specified element from the collection.
public RemoveElement ( System element ) : bool
element System The element to be removed.
Результат bool

RemoveFirst() публичный Метод

Removes the first value from an array list.
public RemoveFirst ( ) : Object
Результат System.Object

RemoveLast() публичный Метод

Removes the last value from an array list.
public RemoveLast ( ) : Object
Результат System.Object

RetainAll() публичный Метод

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.
Результат bool

RetainAll() публичный Метод

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.
Результат bool

Set() публичный Метод

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.
Результат System.Object

SubList() публичный Метод

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.
Результат ListCollectionSupport

ToArray() публичный Метод

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.
Результат System.Object[]