Sort using a property name
Namespace:
Hyleos.CommonAssembly: Hyleos.Common (in Hyleos.Common.dll) Version: 1.0.3.2 (1.0.3.2)
Syntax
| C# |
|---|
public void Sort( string property, ListSortDirection direction ) |
| Visual Basic (Declaration) |
|---|
Public Sub Sort ( _ property As String, _ direction As ListSortDirection _ ) |
| Visual C++ |
|---|
public: void Sort( String^ property, ListSortDirection direction ) |
Parameters
- property
- Type: System..::.String
Property to Sort
- direction
- Type: System.ComponentModel..::.ListSortDirection
Sort "direction" (ASC/DESC)
Remarks
Failed if the property could not be TypeCast as IComparable