Show / Hide Table of Contents

    Class PagedCollection

    Represents a way of setting default values for the PagedCollection<T> class.

    Inheritance
    System.Object
    PagedCollection
    PagedCollection<T>
    Namespace: Cuemon.Collections.Generic
    Assembly: Cuemon.Core.dll
    Syntax
    public class PagedCollection

    Constructors

    | Improve this Doc

    PagedCollection()

    Initializes a new instance of the PagedCollection class.

    Declaration
    protected PagedCollection()

    Methods

    | Improve this Doc

    Search<T>(IEnumerable<T>, Func<T, PagedSettings, StringComparison, Boolean>, PagedSettings)

    Retrieves all the elements in source that match the conditions defined by the specified function delegate match.

    Declaration
    public static PagedCollection<T> Search<T>(IEnumerable<T> source, Func<T, PagedSettings, StringComparison, bool> match, PagedSettings settings)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source

    The sequence to search and apply paging on.

    System.Func<T, PagedSettings, System.StringComparison, System.Boolean> match

    The function delegate that defines the conditions of the elements to search for.

    PagedSettings settings

    The settings that specifies the conditions of the match before applying paging to this instance.

    Returns
    Type Description
    PagedCollection<T>

    A PagedCollection<T> that is the result of match.

    Type Parameters
    Name Description
    T
    Remarks

    This search is performed by using a default value of System.StringComparison.OrdinalIgnoreCase.

    | Improve this Doc

    Search<T>(IEnumerable<T>, Func<T, PagedSettings, StringComparison, Boolean>, PagedSettings, StringComparison)

    Retrieves all the elements in source that match the conditions defined by the specified function delegate match.

    Declaration
    public static PagedCollection<T> Search<T>(IEnumerable<T> source, Func<T, PagedSettings, StringComparison, bool> match, PagedSettings settings, StringComparison comparison)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source

    The sequence to search and apply paging on.

    System.Func<T, PagedSettings, System.StringComparison, System.Boolean> match

    The function delegate that defines the conditions of the elements to search for.

    PagedSettings settings

    The settings that specifies the conditions of the match before applying paging to this instance.

    System.StringComparison comparison

    One of the enumeration values that specifies the rules to use in the comparison.

    Returns
    Type Description
    PagedCollection<T>

    A PagedCollection<T> that is the result of match.

    Type Parameters
    Name Description
    T
    | Improve this Doc

    Sort<T>(IEnumerable<T>, Func<IEnumerable<T>, PagedSettings, IEnumerable<T>>, PagedSettings)

    Sort all the elements in source by the settings applied to the specified function delegate sorter.

    Declaration
    public static PagedCollection<T> Sort<T>(IEnumerable<T> source, Func<IEnumerable<T>, PagedSettings, IEnumerable<T>> sorter, PagedSettings settings)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source

    The sequence to sort and apply paging on.

    System.Func<System.Collections.Generic.IEnumerable<T>, PagedSettings, System.Collections.Generic.IEnumerable<T>> sorter

    The function delegate that defines how the sorting is applied to the elements in source.

    PagedSettings settings

    The settings that specifies the conditions of the sorter before applying paging to this instance.

    Returns
    Type Description
    PagedCollection<T>

    A PagedCollection<T> that is sorted by the specified sorter.

    Type Parameters
    Name Description
    T

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    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)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • PagedCollection()
    • Methods
      • Search<T>(IEnumerable<T>, Func<T, PagedSettings, StringComparison, Boolean>, PagedSettings)
      • Search<T>(IEnumerable<T>, Func<T, PagedSettings, StringComparison, Boolean>, PagedSettings, StringComparison)
      • Sort<T>(IEnumerable<T>, Func<IEnumerable<T>, PagedSettings, IEnumerable<T>>, PagedSettings)
    • Extension Methods
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX