Table of Contents

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 SortInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

To top