Class ListHelper
- Namespace
- Dynamicweb.Core.Helpers
- Assembly
- Dynamicweb.Core.dll
Class contains list helper methods.
public class ListHelper
- Inheritance
-
ListHelper
- Inherited Members
Methods
Sort<T>(List<T>, string, string)
Sorts list by property
public static List<T> Sort<T>(List<T> data, string sortPropertyName, string sortDirection)
Parameters
dataList<T>- List of data
sortPropertyNamestring- List item property name
sortDirectionstring- Sort direction
Returns
- List<T>
- Sorted list
Type Parameters
T- Type