public void Initialize(SortProperty[] sortProperties) { SortProperty.BindSortProperties(sortProperties, typeof(T)); method = CreateDynamicCompareMethod(sortProperties); Comparer = (Comparison <T>)method.CreateDelegate(typeof(Comparison <T>)); }
public void Initialize(string orderBy) { Initialize(SortProperty.ParseOrderBy(orderBy)); }