Mono.Tools.SN.Compare C# (CSharp) Méthode

Compare() static private méthode

static private Compare ( byte value1, byte value2 ) : bool
value1 byte
value2 byte
Résultat bool
		static bool Compare (byte[] value1, byte[] value2) 
		{
			if ((value1 == null) || (value2 == null))
				return false;
			bool result = (value1.Length == value2.Length);
			if (result) {
				for (int i=0; i < value1.Length; i++) {
					if (value1 [i] != value2 [i])
						return false;
				}
			}
			return result;
		}