GetHash code()的byte []数组 [英] GetHashCode() on byte[] array

查看:73
本文介绍了GetHash code()的byte []数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是什么 GetHash code()字节[] 数组调用时计算?
具有相等内容的2个数据阵列不提供相同的散列

What does GetHashCode() calculate when invoked on the byte[] array? The 2 data arrays with equal content do not provide the same hash.

推荐答案

像其他非基本的内置类型,它只是返回的东西随心所欲。这肯定不会尝试散列数组的内容。请参见这个答案。

Like other non-primitive built-in types, it just returns something arbitrary. It definitely doesn't try to hash the contents of the array. See this answer.

这篇关于GetHash code()的byte []数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆