hashCode

Summary

Returns the hash code for the object.

Usage

public virtual unsigned int hashCode()

Returns

The hash code of the object.

Description

Returns the hash code for the object.

Warnings

  • Equal hash codes do not imply that two objects are equal.
  • Hash codes may not be consistent from one execution of a program to a separate execution of the same program.
  • Hash codes should not be used outside the application domain.
  • Hash codes should not be stored in a database.

Examples

Basic Usage
1
2
3
4
import System;
 
System.Object obj = new System.Object();
Console.log(obj.hashCode());

Share

HTML | BBCode | Direct Link