Skip to content

Commit aff2277

Browse files
committed
Add ToString to RedisValueWithScore
1 parent fc53b3a commit aff2277

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/NRedisStack/CoreCommands/DataTypes/RedisValueWithScore.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,12 @@ public RedisValueWithScore(RedisValue value, double score)
2828
/// <c>ZADD my-set 5.1 my-value</c>, the score is <c>5.1</c>.
2929
/// </summary>
3030
public double Score { get; }
31-
}
31+
32+
/// <summary>
33+
/// ToString override.
34+
/// </summary>
35+
public override string ToString()
36+
{
37+
return $"{Value}: {Score}";
38+
}
39+
}

0 commit comments

Comments
 (0)