[]
Creates a SortInfo object with the order specified and the comparison done using the system default comparer.
public SortInfo(int index, bool ascending)
Public Sub New(index As Integer, ascending As Boolean)
Type | Name | Description |
---|---|---|
int | index | Index of the column or row on which to sort |
bool | ascending | Whether the sort order is ascending |
Creates a SortInfo object with the order specified and the comparison done according to the specified comparer.
public SortInfo(int index, bool ascending, IComparer comparer)
Public Sub New(index As Integer, ascending As Boolean, comparer As IComparer)
Type | Name | Description |
---|---|---|
int | index | Index of the column or row on which to sort |
bool | ascending | Whether the sort order is ascending |
IComparer | comparer | IComparer object for method of comparison |
Initializes a new instance of the SortInfo class from serialization.
protected SortInfo(SerializationInfo info, StreamingContext context)
Protected Sub New(info As SerializationInfo, context As StreamingContext)
Type | Name | Description |
---|---|---|
SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |