.


:




:

































 

 

 

 


.




setA: ABC setB: D

setA SetB: D setA SetB: D setA setB:

SortedSet<T>

SortedSet<T> , 4.0 .NET Framework. , . SortedSet<T> ISet<T>, ICollection, ICollection<T>, IEnumerable, IEnumerable<T>, ISerializable, IDeserializationCallback. SortedSet<T> , . , . SortedSet<T> , ISet<T>, , . SortedSet<T> , SortedSet<T> . SortedSet<T> , , .

, SortedSet<T>.

Public SortedSetO

public SortedSet(IEnumerable<T> collection) public SortedSet(IComparer comparer)

public SortedSet(IEnumerable<T> collection, IComparer comparer)

, , collection. comparer. , collection, comparer. , .

SortedSet<T> ISet<T>, , . GetViewBetween (), SortedSet<T>, RemoveWhere (), , , , Reverse (), IEnumerable<T>, .

, , SortedSet<T>, , .

public IComparer<T> Comparer { get; } public T Max { get; } public T Min { get; }

Comparer . , Min .

SortedSet<T> HashSet SortedSet , HashSet<T>.

4.0 .NET Framework System. Collections. Concurrent. , . , , . .

 

 

 

BlockingCollection<T>

 

IProducerConsumerCollection<T>

 

ConcurrentBag<T>

 

IProducerConsumerCollection<T>,

 

,

 

ConcurrentDictionary

 

-", ,

 

<TKey, TValue>

 

 

ConcurrentQueue<T>

 

IProducerConsumerCollection<T>

 

ConcurrentStack<T>

 

IproducerConsumerCollection<T>

 

, IProducerConsumerCollection. System. Collections. Concurrent. IEnumerable, IEnumerable<T> ICollection. , TryAdd () TryTake (), "-". ( "-" . , .) TryAdd () , TryTake () . .

bool TryAdd( item) bool TryTake(out T item)

TryAdd () true, i tem. TryTake () true, i tem . TryAdd () , i tern . ( , IProducerConsumerCollection CopyTo (), ICollection, (), .)

(TPL) PLINQ. . BlockingCollection<T>. BlockingCollection<T>, .

BlockingCollection<T>, , . , , , , . , "-". BlockingCollection<T> ICollection, IEnumerable, IEnumerable<T>, IDisposable.

BlockingCollection<T> .





:


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


:

:

, .
==> ...

1506 - | 1272 -


© 2015-2024 lektsii.org - -

: 0.015 .