ComponentFactory.Krypton.Ribbon.EncryptedLicenseProvider.ArrayEqual C# (CSharp) Method

ArrayEqual() private static method

Are the contents of the two byte arrays equal
private static ArrayEqual ( byte a1, byte a2 ) : bool
a1 byte The first array
a2 byte The second array
return bool
        private static bool ArrayEqual(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;
        }