PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Reflection­Type­Comparer Class / Reflection­Type­Comparer Methods / Reflection­Type­Comparer.​Get­Hash­Code Method / Reflection­Type­Comparer.​Get­Hash­Code Method (Type)

ReflectionTypeComparer.GetHashCode Method (Type)

Returns a hash code for the specified object.

Namespace:  PostSharp.Reflection
Assembly:  PostSharp (in PostSharp.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public int GetHashCode(
	Type obj
)

Parameters

obj
Type: System.Type
The Object for which a hash code is to be returned.

Return Value

Type: Int32
A hash code for the specified object.

Implements

IEqualityComparer<T>.GetHashCode(T)
Exceptions
ExceptionCondition
ArgumentNullExceptionThe type of obj is a reference type and obj is null.
See Also