/// <summary> /// Returns true if Collection instances are equal /// </summary> /// <param name="other">Instance of Collection to be compared</param> /// <returns>Boolean</returns> public bool Equals(Collection other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) { return(false); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( Rid == other.Rid || Rid != null && Rid.Equals(other.Rid) ) && ( Ts == other.Ts || Ts != null && Ts.Equals(other.Ts) ) && ( Self == other.Self || Self != null && Self.Equals(other.Self) ) && ( Etag == other.Etag || Etag != null && Etag.Equals(other.Etag) ) && ( Doc == other.Doc || Doc != null && Doc.Equals(other.Doc) ) && ( Sprocs == other.Sprocs || Sprocs != null && Sprocs.Equals(other.Sprocs) ) && ( Triggers == other.Triggers || Triggers != null && Triggers.Equals(other.Triggers) ) && ( Udfs == other.Udfs || Udfs != null && Udfs.Equals(other.Udfs) ) && ( Conflicts == other.Conflicts || Conflicts != null && Conflicts.Equals(other.Conflicts) ) && ( IndexingPolicy == other.IndexingPolicy || IndexingPolicy != null && IndexingPolicy.Equals(other.IndexingPolicy) )); }