AsmResolver.Net.SignatureComparer.ByteArrayMatches C# (CSharp) Метод

ByteArrayMatches() приватный статический Метод

private static ByteArrayMatches ( IEnumerable array1, IList array2 ) : bool
array1 IEnumerable
array2 IList
Результат bool
        private static bool ByteArrayMatches(IEnumerable<byte> array1, IList<byte> array2)
        {
            if (array1 == null && array2 == null)
                return true;
            if (array1 == null || array2 == null)
                return false;

            return !array1.Where((t, i) => t != array2[i]).Any();
        }