GacInstalled.GetHashCode Method ()


Returns a hash code for the current object.

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

public override int GetHashCode()

Return Value

Type: System.Int32

A hash code for the current object.

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

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

    "Hashcode = " + myGacInstalled.GetHashCode().ToString());

.NET Framework
Available since 2.0
Return to top