Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetHashCode()

Returns a hash code of this string.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public override int GetHashCode()

Returns

Type

Description

intA hash code of this string.

Remarks

The hash code is an integer that is always the same for two equal strings but (very likely) different for two unequal strings.