System::Runtime::CompilerServices::RuntimeHelpers::GetHashCode 方法

RuntimeHelpers::GetHashCode method

获取任意类型的哈希码。调用 Object::GetHashCode() 来实现。

template<typename T> static int System::Runtime::CompilerServices::RuntimeHelpers::GetHashCode(SmartPtr<T> const &obj)
参数描述
T要获取哈希码的类型。
参数类型描述
objSmartPtr<T> const&Object 获取信息。

ReturnValue

由目标实现计算的哈希码值。

另见