ComponentFactory.Krypton.Ribbon.EvaluationMonitor.Equals C# (CSharp) Метод

Equals() приватный Метод

Are the contents of the two byte arrays equal
private Equals ( byte a1, byte a2 ) : bool
a1 byte The first array
a2 byte The second array
Результат bool
        private bool Equals(byte[] a1, byte[] a2)
        {
            if (a1 == a2) return true;
            if ((a1 == null) || (a2 == null)) return false;
            if (a1.Length != a2.Length) return false;
            for (int i = 0; i < a1.Length; i++)
            {
                if (a1[i] != a2[i]) return false;
            }
            return true;
        }