Interface ISortableTable<TSource>
Defines a generic way to perform a table-like sorting operation.
Namespace: Cuemon.Collections.Generic
Assembly: Cuemon.Core.dll
Syntax
public interface ISortableTable<TSource>
Type Parameters
| Name | Description |
|---|---|
| TSource | The type of the elements of to OrderBy(IEnumerable<TSource>, SortOrder). |
Properties
| Improve this DocOrderByColumn
Gets the column on which to perform a sorting operation.
Declaration
string OrderByColumn { get; }
Property Value
| Type | Description |
|---|---|
| System.String | The column on which to perform a sorting operation. |
Methods
| Improve this DocOrderBy(IEnumerable<TSource>, SortOrder)
Sorts the elements of source using the order of direction.
Declaration
IEnumerable<TSource> OrderBy(IEnumerable<TSource> source, SortOrder direction)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<TSource> | source | A sequence of values to order by |
| SortOrder | direction | The SortOrder to apply to the |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<TSource> | An System.Collections.Generic.IEnumerable<T> whose elements are sorted according to OrderByColumn and |