.


:




:

































 

 

 

 


Bool IsProperSupersetOf(lEnumera




 

true,

 

ble<T> other)

 

other, false

 

bool IsSubsetOf(IEnumerable<T>

 

true,

 

other)

 

other, false

 

Bool

 

true,

 

IsSupersetOf(IEnumerable<T>

 

 

other)

 

other, false

 

bool Overlaps(IEnumerable<T>

 

true,

 

other)

 

other , false

 

bool SetEquals(IEnumerable<T>

 

true,

 

other)

 

other , false. , other

 

Void SymmetricExceptWith

 

 

(IEnumerable<T> other)

 

other

 

void UnionWith(IEnumerable<T>

 

 

other)

 

other

 

KeyValuePair<TKey, TValue>

System.Collections. Generic KeyValuePair<TKey, TValue>. , "-", , , Dictionary<TKey, TValueX .

public TKey Key { get; }; public TValue Value { get; };

. KeyValuePair<TKey, TValue> :

public KeyValuePair(TKey key, TValue value) key , a value .

, , . . System. Collections. Generic. . 25.14 , . .

25.14.

 

 

 

Dictionary<Tkey,

 

TValue>

 

-". , Hashtable

 

HashSet<T>

 

, -

 

LinkedList<T>

 

 

List<T>

 

. , ArrayList

 

Queue<T>

 

. , Queue

 

SortedDictionary<TKey,

 

-

 

TValue>

 

"

 

SortedList<TKey,

 

TValue>

 

-. , SortedList

 

SortedSet<T>

 

 

Stack<T>

 

. , Stack

 

System. Collections. Generic : SynchronizedCollection<T> IList<T>; SynchronizedReadOnlyCollection<T>, lList<T>; SynchronizedKeyCollectioncK, >, System. ServiceModel. UriSchemeKeyedCollection; KeyedByTypeCollection<T> , .

List<T>

List<T> . ArrayList. ICollection, ICollection<T>, IList, IList<T>, IEnumerable IEnumerable<T>. List<T> .

Public List()

public List(IEnumerable<T> collection) public List(int capacity)

List . List , collection . List, , capacity. , . , , .

List<T> , , , . . 25.15.

25.15. , List<T>

 

 

 

public virtual void AddRange(Icollection - collection) public virtual int BinarySearch(T item)

 

collection ArrayList

, item. . , .

 

 

 

Public

 

Int BinarySearch(T

 

 

item,

 

IComparer<T> comparer)

 

, item, , comparer. . , .

 

Public

 

Int BinarySearch(int

 

 

index,

 

int count, T item,

 

, item,

 

IComparer<T> comparer)

 

, comparer. , index, , count. . , .

 

Public

 

List<T> GetRange(int

 

.

 

index,

 

int count)

 

, index, , count. ,

 

Public

 

int IndexOf(T item)

 

item . , -1

 

Public

 

Void InsertRange(int

 

collection

 

index,

 

IEnumerable<T>

 

, ,

 

collection)

 

index

 

public i tern)

 

Int LastlndexOf(T

 

item . , -1

 

Public

 

Void RemoveRange(int

 

,

 

index,

 

int count)

 

, index, , count

 

Public

 

Void Reverse()

 

 

Public

 

Void Reverse(int

 

 

index,

 

int count)

 

, , index, , count

 

Public

 

Void Sort()

 

 

. 25.15

 

 

 

Public void

 

,

 

Sort(IComparer<T> comparer)

 

, comparer. comparer , ,

 

Public void

 

,

 

Sort(Comparison<T> comparison)

 

 

public void Sort(int index,

 

,

 

int count, IComparer<T>

 

,

 

comparer)

 

comparer. , index, , count. comparer , ,

 

public T [ ] ToArrayO

 

,

 

Public void TrimExcess()

 

, 10% ,

 

List<T> Capacity, , , . .

public int Capacity { get; set; }

Capacity . , . , . , . .

List<T> , IList<T>.

public this[int index] { get; set; }

, index.

List<T>. , ArrayList. , , ArrayList List, .

// List<T>. using System;





:


: 2016-12-03; !; : 325 |


:

:

.
==> ...

1364 - | 1200 -


© 2015-2024 lektsii.org - -

: 0.058 .