Redigera

Dela via


GacInstalled.GetHashCode Method

Definition

Returns a hash code for the current object.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Returns

A hash code for the current object.

Examples

The following code example shows the use of the GetHashCode method. This example is part of a larger example provided for the GacInstalled class.

Console::WriteLine( "Hashcode = {0}", myGacInstalled->GetHashCode() );
Console.WriteLine(
    "Hashcode = " + myGacInstalled.GetHashCode().ToString());
Console.WriteLine( _
    ("Hashcode = " & myGacInstalled.GetHashCode().ToString()))

Remarks

The GetHashCode method returns 0 (zero) because GacInstalled objects have no properties to distinguish one from another.

Applies to