Class PartitionCollection<T>
Represents an System.Collections.Generic.IEnumerable<T> partitioned data sequence. This class cannot be inherited.
Inheritance
System.Object
PartitionCollection<T>
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Assembly: Cuemon.Core.dll
Syntax
public sealed class PartitionCollection<T> : IEnumerable<T>, IEnumerable
Type Parameters
Name |
Description |
T |
The type of the elements of this instance.
|
Constructors
|
Improve this Doc
PartitionCollection(IEnumerable<T>)
Declaration
public PartitionCollection(IEnumerable<T> source)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
source |
The source of the sequence.
|
|
Improve this Doc
PartitionCollection(IEnumerable<T>, Int32)
Declaration
public PartitionCollection(IEnumerable<T> source, int partitionSize)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
source |
The source of the sequence.
|
System.Int32 |
partitionSize |
The number of elements a partition can hold.
|
Properties
|
Improve this Doc
Count
Gets the total number of elements in the sequence before partitioning is applied.
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
The total number of elements in the sequence before partitioning is applied.
|
|
Improve this Doc
HasPartitions
Gets a value indicating whether this instance has partitions remaining to be iterated.
Declaration
public bool HasPartitions { get; }
Property Value
Type |
Description |
System.Boolean |
true if this instance has partitions remaining to be iterated; otherwise, false .
|
|
Improve this Doc
PartitionSize
Gets the number of elements a partition can hold.
Declaration
public int PartitionSize { get; }
Property Value
Type |
Description |
System.Int32 |
The number of elements a partition can hold.
|
|
Improve this Doc
Remaining
Gets the number of elements remaining in the partitioned sequence.
Declaration
public int Remaining { get; }
Property Value
Type |
Description |
System.Int32 |
The number of elements remaining in the partitioned sequence.
|
Methods
|
Improve this Doc
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<T> |
A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.
|
|
Improve this Doc
PartitionCount()
Gets the total amount of partitions for the elements in this sequence.
Declaration
public int PartitionCount()
Returns
Type |
Description |
System.Int32 |
The total amount of partitions for the elements in this sequence.
|
Explicit Interface Implementations
|
Improve this Doc
IEnumerable.GetEnumerator()
Returns an enumerator that iterates through a collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
An System.Collections.IEnumerator object that can be used to iterate through the collection.
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods
ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3>(IEnumerable<TSource>, String, Func<TSource, T1, T2, T3, String>, T1, T2, T3)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3, T4>(IEnumerable<TSource>, String, Func<TSource, T1, T2, T3, T4, String>, T1, T2, T3, T4)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3, T4, T5>(IEnumerable<TSource>, String, Func<TSource, T1, T2, T3, T4, T5, String>, T1, T2, T3, T4, T5)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2>(IEnumerable<TSource>, String, String, Func<TSource, T1, T2, String>, T1, T2)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3>(IEnumerable<TSource>, String, String, Func<TSource, T1, T2, T3, String>, T1, T2, T3)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3, T4>(IEnumerable<TSource>, String, String, Func<TSource, T1, T2, T3, T4, String>, T1, T2, T3, T4)
StringConverterExtensions.ToDelimitedString<TSource, T1, T2, T3, T4, T5>(IEnumerable<TSource>, String, String, Func<TSource, T1, T2, T3, T4, T5, String>, T1, T2, T3, T4, T5)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, T5, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
EnumerableConverterExtensions.ParseSequenceWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
EnumerableUtilityExtensions.SelectOne<TSource, T1, T2, T3>(IEnumerable<TSource>, Func<IEnumerable<TSource>, T1, T2, T3, TSource>, T1, T2, T3)
EnumerableUtilityExtensions.SelectOne<TSource, T1, T2, T3, T4>(IEnumerable<TSource>, Func<IEnumerable<TSource>, T1, T2, T3, T4, TSource>, T1, T2, T3, T4)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, Boolean>, T1, T2, T3)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, Boolean>, T1, T2, T3, T4)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4, T5>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, Boolean>, T1, T2, T3, T4, T5)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4, T5, T6>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, Boolean>, T1, T2, T3, T4, T5, T6)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4, T5, T6, T7>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, Boolean>, T1, T2, T3, T4, T5, T6, T7)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4, T5, T6, T7, T8>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, Boolean>, T1, T2, T3, T4, T5, T6, T7, T8)
EnumerableUtilityExtensions.FindAll<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9>(IEnumerable<TSource>, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, Boolean>, T1, T2, T3, T4, T5, T6, T7, T8, T9)