Checks two byte arrays and determines if they have the same values.
public static bool ByteArrayEquals(byte[] a, byte[] b)
{
if (a != null && b != null)
{
if (a.Length == b.Length)
{
for (int x = 0; x < a.Length; x++)
{
if (a[x] != b[x])
{
return false;
}
}
return true;
}
}
return false;
}