private static bool AreTokensTheSame()

in Managed/Util/ExceptionHelper.cs [104:120]


        private static bool AreTokensTheSame(byte[] token1, byte[] token2)
        {
            Debug.Assert(
                token1.Length == PublicKeyTokenLength &&
                token2.Length == PublicKeyTokenLength,
                "public key tokens should be 8 bytes");

            for (int i = 0; i < PublicKeyTokenLength; i++)
            {
                if (token1[i] != token2[i])
                {
                    return false;
                }
            }

            return true;
        }