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();
        }