Struct GDIDWithStrHash
Represents a GDID with 8 byte string hash. The hash is case sensitive.
The point of this structure is to avoid creation of references for Pile cache so keys alone do not stall the GC.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: NFX.dll
Syntax
public struct GDIDWithStrHash : IDistributedStableHashProvider, IEquatable<GDIDWithStrHash>
Constructors
GDIDWithStrHash(GDID, String)
Declaration
public GDIDWithStrHash(GDID gdid, string key)
Parameters
Type |
Name |
Description |
GDID |
gdid |
|
System.String |
key |
|
Fields
GDID
Declaration
public readonly GDID GDID
Field Value
Hash
Declaration
public readonly ulong Hash
Field Value
Type |
Description |
System.UInt64 |
|
Methods
Equals(GDIDWithStrHash)
Declaration
public bool Equals(GDIDWithStrHash other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
GetDistributedStableHash()
Declaration
public ulong GetDistributedStableHash()
Returns
Type |
Description |
System.UInt64 |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
StrToHash(String)
Declaration
public static ulong StrToHash(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type |
Description |
System.UInt64 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Implements
System.IEquatable<T>
Extension Methods