public bool Equals(QueryResultKey other) { if (other == null) { return(false); } return(QueryID.Equals(other.QueryID)); }
public int CompareTo(QueryResultKey other) { if (other == null || !QueryID.Equals(other.QueryID)) { return(-1); } return(QueryID.CompareTo(other.QueryID)); }
public override bool Equals(object obj) { QueryResultKey other = obj as QueryResultKey; if ((QueryID == null && other != null) || (QueryID != null && other == null)) { return(false); } if (QueryID == null && other.QueryID == null) { return(true); } return(QueryID.Equals(other.QueryID)); }