阅读背景:

为String.GetHashCode()创建重载以在x86和x64环境中返回相同的值

来源:互联网 

I have a scenario in which my server side code runs in x86 environment where as the client side runs in x64. The issue is happening that we are using String.GetHashCode() to identify the objects within the HashTable since "The behavior of GetHashCode is dependent on its implementation, which might change from one version of the common language runtime to another. " -MSDN. I used the unsafe code to create x86 equivalent GetHashCode() from the following stack overflow question: I have a scenario in which my server side code




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: