8 [__DynamicallyInvokable]
9 [HostProtection(
SecurityAction.LinkDemand, Synchronization =
true, ExternalThreading =
true)]
23 return new EnumeratorDropIndices(m_source.GetEnumerator());
28 return GetEnumerator();
41 public TSource Current => m_source.Current.Value;
56 public bool MoveNext()
58 return m_source.MoveNext();
74 [__DynamicallyInvokable]
77 [__DynamicallyInvokable]
84 [__DynamicallyInvokable]
87 [__DynamicallyInvokable]
94 [__DynamicallyInvokable]
97 [__DynamicallyInvokable]
106 [__DynamicallyInvokable]
107 protected OrderablePartitioner(
bool keysOrderedInEachPartition,
bool keysOrderedAcrossPartitions,
bool keysNormalized)
117 [__DynamicallyInvokable]
123 [__DynamicallyInvokable]
132 [__DynamicallyInvokable]
136 if (orderablePartitions.
Count != partitionCount)
141 for (
int i = 0; i < partitionCount; i++)
143 array[i] =
new EnumeratorDropIndices(orderablePartitions[i]);
151 [__DynamicallyInvokable]
155 return new EnumerableDropIndices(orderableDynamicPartitions);
abstract IList< IEnumerator< KeyValuePair< long, TSource > > > GetOrderablePartitions(int partitionCount)
Partitions the underlying collection into the specified number of orderable partitions.
Represents a non-generic collection of objects that can be individually accessed by index.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
virtual IEnumerable< KeyValuePair< long, TSource > > GetOrderableDynamicPartitions()
Creates an object that can partition the underlying collection into a variable number of partitions.
bool KeysOrderedInEachPartition
Gets whether elements in each partition are yielded in the order of increasing keys.
Exposes an enumerator, which supports a simple iteration over a non-generic collection....
SecurityAction
Specifies the security actions that can be performed using declarative security.
Provides information about, and means to manipulate, the current environment and platform....
Represents a particular manner of splitting an orderable data source into multiple partitions.
bool KeysOrderedAcrossPartitions
Gets whether elements in an earlier partition always come before elements in a later partition.
override IEnumerable< TSource > GetDynamicPartitions()
Creates an object that can partition the underlying collection into a variable number of partitions.
object Current
Gets the element in the collection at the current position of the enumerator.
IEnumerator GetEnumerator()
Returns an enumerator that iterates through a collection.
The exception that is thrown when a method call is invalid for the object's current state.
int Count
Gets the number of elements contained in the T:System.Collections.ICollection.
The exception that is thrown when an invoked method is not supported, or when there is an attempt to ...
bool KeysNormalized
Gets whether order keys are normalized.
override IList< IEnumerator< TSource > > GetPartitions(int partitionCount)
Partitions the underlying collection into the given number of ordered partitions.
Represents a particular manner of splitting a data source into multiple partitions.
OrderablePartitioner(bool keysOrderedInEachPartition, bool keysOrderedAcrossPartitions, bool keysNormalized)
Called from constructors in derived classes to initialize the T:System.Collections....