CSharp examples for System:Byte Array
Byte array Compare
using System.Text; using System;//from w w w.j a va 2s . c om public class Main{ public static bool ByteCompare(byte[] input1, byte[] input2) { if ((input1 == null) || (input2 == null)) { return false; } if (input1.Length != input2.Length) { return false; } for (int i = 0; i < input1.Length; i++) { if (input1[i] != input2[i]) { return false; } } return true; } }