NHibernate.Lob.External.ExternalXlob.Equals C# (CSharp) Method

Equals() public method

public Equals ( Xlob xlob ) : bool
xlob Calyptus.Lob.Xlob
return bool
		public override bool Equals(Xlob xlob)
		{
			if (xlob == null) return false;
			if (xlob == this) return true;
			ExternalXlob ex = xlob as ExternalXlob;
			if (ex == null || !this.Connection.Equals(ex.Connection) || this.identifier.Length != ex.identifier.Length ||
				(this.compression != ex.compression && this.compression != null && !this.compression.Equals(ex.compression))) return false;
			byte[] a = this.identifier, b = ex.identifier;
			for (int i = 0; i < a.Length; i++)
				if (a[i] != b[i]) return false;
			return true;
		}
	}