Пример #1
0
        public static Boolean CompareBytes(Byte[] byte1, Byte[] byte2)
        {
            if (byte1 == null || byte2 == null)
            {
                return false;
            }
            if (byte1.Length != byte2.Length)
            {
                return false;
            }

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