PostSharpAPI ReferencePost­Sharp.​ReflectionReflection­Type­ComparerGet­Hash­Code
Open sandboxFocus

Method GetHashCode

GetHashCode(Type)

Returns a hash code for the specified object.

Declaration
public int GetHashCode(Type obj)
Parameters
Type Name Description
Type obj

The Object for which a hash code is to be returned.

Returns
Type Description
Int32

A hash code for the specified object.

Exceptions
Type Condition
ArgumentNullException

The type of obj is a reference type and obj is null.

GetHashCode(Type[])

Returns a hash code for the specified object.

Declaration
public int GetHashCode(Type[] types)
Parameters
Type Name Description
Type[] types
Returns
Type Description
Int32

A hash code for the specified object.

Exceptions
Type Condition
ArgumentNullException

The type of obj is a reference type and obj is null.