次の方法で共有


Boolean.GetHashCode メソッド

このインスタンスのハッシュ コードを返します。

Overrides Public Function GetHashCode() As Integer
[C#]
public override int GetHashCode();
[C++]
public: int GetHashCode();
[JScript]
public override function GetHashCode() : int;

戻り値

現在の Boolean のハッシュ コード。

解説

Boolean クラスは、 true を整数 1 として実装し、 false を整数 0 として実装します。ただし、特定のプログラミング言語では、 truefalse は、他の値で表現されることもあります。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET, Common Language Infrastructure (CLI) Standard

参照

Boolean 構造体 | Boolean メンバ | System 名前空間 | GetHashCode