00001 using System; 00002 00003 namespace Tamir.SharpSsh.java.util 00004 { 00008 public class Arrays 00009 { 00010 internal static bool equals(byte[] foo, byte[] bar) 00011 { 00012 int i=foo.Length; 00013 if(i!=bar.Length) return false; 00014 for(int j=0; j<i; j++){ if(foo[j]!=bar[j]) return false; } 00015 //try{while(true){i--; if(foo[i]!=bar[i])return false;}}catch(Exception e){} 00016 return true; 00017 } 00018 } 00019 }
1.5.9