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
RedisValuescore
double
Properties
Element
The unique element stored in the sorted set
public RedisValue Element { get; }
Property Value
Score
The score against the element
public double Score { get; }
Property Value
Methods
CompareTo(SortedSetEntry)
Compares two values by score
public int CompareTo(SortedSetEntry value)
Parameters
value
SortedSetEntry
Returns
CompareTo(object)
Compares two values by score
public int CompareTo(object value)
Parameters
value
object
Returns
Equals(SortedSetEntry)
Compares two values for equality
public bool Equals(SortedSetEntry value)
Parameters
value
SortedSetEntry
Returns
Equals(object)
Compares two values for equality
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
See Object.GetHashCode()
public override int GetHashCode()
Returns
ToString()
See Object.ToString()
public override string ToString()
Returns
Operators
operator ==(SortedSetEntry, SortedSetEntry)
Compares two values for equality
public static bool operator ==(SortedSetEntry x, SortedSetEntry y)
Parameters
Returns
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
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
operator !=(SortedSetEntry, SortedSetEntry)
Compares two values for non-equality
public static bool operator !=(SortedSetEntry x, SortedSetEntry y)