Table of Contents

Struct SortedSetEntry

Namespace
StackExchange.Redis
Assembly
StackExchange.Redis.StrongName.dll

Describes a sorted-set element with the corresponding value

public struct SortedSetEntry : IEquatable<SortedSetEntry>, IComparable, IComparable<SortedSetEntry>
Implements
Inherited Members

Constructors

SortedSetEntry(RedisValue, double)

Initializes a SortedSetEntry value

public SortedSetEntry(RedisValue element, double score)

Parameters

element RedisValue
score double

Properties

Element

The unique element stored in the sorted set

public RedisValue Element { get; }

Property Value

RedisValue

Score

The score against the element

public double Score { get; }

Property Value

double

Methods

CompareTo(SortedSetEntry)

Compares two values by score

public int CompareTo(SortedSetEntry value)

Parameters

value SortedSetEntry

Returns

int

CompareTo(object)

Compares two values by score

public int CompareTo(object value)

Parameters

value object

Returns

int

Equals(SortedSetEntry)

Compares two values for equality

public bool Equals(SortedSetEntry value)

Parameters

value SortedSetEntry

Returns

bool

Equals(object)

Compares two values for equality

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

See Object.GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

See Object.ToString()

public override string ToString()

Returns

string

Operators

operator ==(SortedSetEntry, SortedSetEntry)

Compares two values for equality

public static bool operator ==(SortedSetEntry x, SortedSetEntry y)

Parameters

x SortedSetEntry
y SortedSetEntry

Returns

bool

implicit operator KeyValuePair<RedisValue, double>(SortedSetEntry)

Converts to a key/value pair

public static implicit operator KeyValuePair<RedisValue, double>(SortedSetEntry value)

Parameters

value SortedSetEntry

Returns

KeyValuePair<RedisValue, double>

implicit operator SortedSetEntry(KeyValuePair<RedisValue, double>)

Converts from a key/value pair

public static implicit operator SortedSetEntry(KeyValuePair<RedisValue, double> value)

Parameters

value KeyValuePair<RedisValue, double>

Returns

SortedSetEntry

operator !=(SortedSetEntry, SortedSetEntry)

Compares two values for non-equality

public static bool operator !=(SortedSetEntry x, SortedSetEntry y)

Parameters

x SortedSetEntry
y SortedSetEntry

Returns

bool