Class CollectionExtensions

Inheritance
System.Object
CollectionExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Shell.Services.Rest
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public static class CollectionExtensions

Methods

ApplyRange<T>(IEnumerable<T>, ItemRange)

Declaration
public static RangedItems<T> ApplyRange<T>(this IEnumerable<T> items, ItemRange requestedRange)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> items
ItemRange requestedRange
Returns
Type Description
RangedItems<T>
Type Parameters
Name Description
T

ApplyRange<T>(IEnumerable<T>, ItemRange, Nullable<Int32>)

Declaration
public static RangedItems<T> ApplyRange<T>(this IEnumerable<T> items, ItemRange requestedRange, int? totalItemCount)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T> items
ItemRange requestedRange
System.Nullable<System.Int32> totalItemCount
Returns
Type Description
RangedItems<T>
Type Parameters
Name Description
T

ApplyRange<T>(IQueryable<T>, ItemRange)

Declaration
public static RangedItems<T> ApplyRange<T>(this IQueryable<T> items, ItemRange requestedRange)
Parameters
Type Name Description
System.Linq.IQueryable<T> items
ItemRange requestedRange
Returns
Type Description
RangedItems<T>
Type Parameters
Name Description
T

ApplyRange<T>(IQueryable<T>, ItemRange, Nullable<Int32>)

Declaration
public static RangedItems<T> ApplyRange<T>(this IQueryable<T> items, ItemRange requestedRange, int? totalItemCount)
Parameters
Type Name Description
System.Linq.IQueryable<T> items
ItemRange requestedRange
System.Nullable<System.Int32> totalItemCount
Returns
Type Description
RangedItems<T>
Type Parameters
Name Description
T

OrderBy<TSource>(IQueryable<TSource>, SortColumn)

Declaration
public static IQueryable<TSource> OrderBy<TSource>(this IQueryable<TSource> source, SortColumn sortColumn)
Parameters
Type Name Description
System.Linq.IQueryable<TSource> source
SortColumn sortColumn
Returns
Type Description
System.Linq.IQueryable<TSource>
Type Parameters
Name Description
TSource

OrderBy<TSource>(IQueryable<TSource>, IEnumerable<SortColumn>)

Declaration
public static IQueryable<TSource> OrderBy<TSource>(this IQueryable<TSource> source, IEnumerable<SortColumn> sortColumns)
Parameters
Type Name Description
System.Linq.IQueryable<TSource> source
System.Collections.Generic.IEnumerable<SortColumn> sortColumns
Returns
Type Description
System.Linq.IQueryable<TSource>
Type Parameters
Name Description
TSource