public override bool Equals(Xlob xlob) { if (xlob == null) { return(false); } if (xlob == this) { return(true); } var ex = xlob as ExternalXlob; if (ex == null || !Connection.Equals(ex.Connection) || _identifier.Length != ex._identifier.Length || (_compression != ex._compression && _compression != null && !_compression.Equals(ex._compression))) { return(false); } byte[] a = _identifier, b = ex._identifier; return(!a.Where((t, i) => t != b[i]).Any()); }
public override bool Equals(object obj) { return(base.Equals(obj) && _compression.Equals(((ExternalXlobType)obj)._compression)); }