Show / Hide Table of Contents

    Class PartitionCollectionExtensions

    This is an extension implementation that provides ways to partition System.Collections.Generic.IEnumerable<T> sequences.

    Inheritance
    System.Object
    PartitionCollectionExtensions
    Namespace: Cuemon.Collections.Generic
    Assembly: Cuemon.Core.dll
    Syntax
    public static class PartitionCollectionExtensions

    Methods

    | Improve this Doc

    ToPartitionCollection<T>(IEnumerable<T>)

    Converts the specified source to a partitioned data sequence. Default partition size is 128.

    Declaration
    public static PartitionCollection<T> ToPartitionCollection<T>(this IEnumerable<T> source)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source

    The source of the sequence.

    Returns
    Type Description
    PartitionCollection<T>

    An instance of PartitionCollection<T>.

    Type Parameters
    Name Description
    T

    The type of the elements of source.

    | Improve this Doc

    ToPartitionCollection<T>(IEnumerable<T>, Int32)

    Converts the specified source to a partitioned data sequence.

    Declaration
    public static PartitionCollection<T> ToPartitionCollection<T>(this IEnumerable<T> source, int size)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source

    The source of the sequence.

    System.Int32 size

    The number of elements a partition can hold.

    Returns
    Type Description
    PartitionCollection<T>

    An instance of PartitionCollection<T>.

    Type Parameters
    Name Description
    T

    The type of the elements of source.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX