Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​HashCode

Assembly: System.Runtime

Combines the hash code for multiple values into a single hash code.

Methods

public void
AddBytes​(ReadOnlySpan`1 value)
public void
Add​(T value)
public void
Add​(T value, IEqualityComparer`1 comparer)
public bool
Equals​(object obj)
obj Ignored.
Returns This method will always throw a <see cref="T:System.NotSupportedException" /> .
This method is not supported and should not be called.
public int
GetHashCode​()
Returns This method will always throw a <see cref="T:System.NotSupportedException" /> .
This method is not supported and should not be called.
public int
ToHashCode​()
Returns The calculated hash code.
Calculates the final hash code after consecutive <see cref="Overload:System.HashCode.Add" /> invocations.
public string
ToString​()
Inherited from ValueType
Returns The fully qualified type name.
Returns the fully qualified type name of this instance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .