Table of Contents

Method ToHashedIndexKey

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

ToHashedIndexKey<TValue>(TValue)

Computes the hash value of the input expression using the same hash function used to create a hashed index.

public static long ToHashedIndexKey<TValue>(TValue value)

Parameters

value TValue

The value to be hashed.

Returns

long

The hashed numeric value.

Type Parameters

TValue

The type of the value to be hashed.