AsmResolver.Net.SignatureComparer.ByteArrayMatches C# (CSharp) Method

ByteArrayMatches() private static method

private static ByteArrayMatches ( IEnumerable array1, IList array2 ) : bool
array1 IEnumerable
array2 IList
return 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();
        }