Returns a new PropertySortSelector with the additional sort criteria to this propertySortSelector added.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As CompositePropertySelector
Dim compositeSelector As T
Dim value As T
value = instance.Add(Of T)(compositeSelector) |
Parameters
- compositeSelector
Type Parameters
- T
Example
C# | Copy Code |
---|
public void ThenBySample2() {
// Sample showing sort by Country and CompanyName properties of Customer.
var mgr = new DomainModelEntityManager();
var selector1 = new PropertySortSelector(typeof(Customer), "Country");
var selector2 = new PropertySortSelector(typeof(Customer), "CompanyName");
var combinedSelector = selector1.ThenBy(selector2);
var results = mgr.Customers.OrderBySelector(combinedSelector).ToList();
} |
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also