AppSecInc.ProcessDomain.AssemblyResolver.PublicKeysTokenEqual C# (CSharp) Method

PublicKeysTokenEqual() private static method

private static PublicKeysTokenEqual ( byte lhs, byte rhs ) : bool
lhs byte
rhs byte
return bool
        private static bool PublicKeysTokenEqual(byte[] lhs, byte[] rhs)
        {
            if (lhs == null || rhs == null)
            {
                return lhs == rhs;
            }

            if (lhs.Length != rhs.Length)
                return false;

            for (int i = 0; i < lhs.Length; i++)
            {
                if (lhs[i] != rhs[i])
                    return false;
            }

            return true;
        }