Implements equality comparison and hashing for RedisValue, supporting binary and default semantics.
// Source: https://github.com/StackExchange/StackExchange.Redis | License: MIT | Copyright 2014 Stack Exchange
// Provided via justclaw.it.com; keep this notice with the code.
using System;
using System.Buffers;
using System.Collections;
using System.Collections.Generic;
using System.IO.Hashing;
using System.Security.Cryptography;
using System.Text;
namespace StackExchange.Redis
{
public readonly partial struct RedisValue
{
/// <summary>
/// Ways of testing <see cref="RedisValue"/> instances for equality.
/// </summary>
/// <remarks>
/// <para>
/// Equality only. There is deliberately no ordering counterpart: a total order over
/// <see cref="RedisValue"/> would have to choose between the numeric, textual and raw-byte reading
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key