Export (0) Print
Expand All

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.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft