Class SortInfo
- Namespace
- Dynamicweb.Indexing.Querying.Sorting
- Assembly
- Dynamicweb.Core.dll
Class containing information about the sort direction for a given field.
[Serializable]
[DataContract]
public class SortInfo : IEquatable<SortInfo>
- Inheritance
-
SortInfo
- Implements
- Inherited Members
Properties
Field
Gets or sets the field used for sorting.
[DataMember(Name = "Field")]
public string Field { get; set; }
Property Value
- string
The field.
SortDirection
Gets or sets the sort direction for the field.
[DataMember(Name = "SortDirection")]
public SortDirection SortDirection { get; set; }
Property Value
- SortDirection
The sort direction.
Methods
Equals(SortInfo?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(SortInfo? other)
Parameters
other
SortInfoAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.