public override bool Equals(object obj)
        {
            if (obj is null)
            {
                return(false);
            }
            DisplayFact that = (DisplayFact)obj;

            return(FactHash.Equals(that.FactHash)); //this.Ind.Equals(that.Ind) && this.Fact.Equals(that.Fact);
        }
Beispiel #2
0
        public int CompareTo(object obj)
        {
            DisplayFact that = (DisplayFact)obj;

            if (this.FactDate == that.FactDate && Ind != null)
            {
                return(this.Ind.CompareTo(that.Ind));
            }
            return(this.FactDate.CompareTo(that.FactDate));
        }
        public int CompareTo(object obj)
        {
            DisplayFact that = (DisplayFact)obj;

            return(FactDate == that.FactDate && Ind != null?Ind.CompareTo(that.Ind) : FactDate.CompareTo(that.FactDate));
        }
Beispiel #4
0
        public override bool Equals(object obj)
        {
            DisplayFact that = (DisplayFact)obj;

            return(this.FactHash.Equals(that.FactHash)); //this.Ind.Equals(that.Ind) && this.Fact.Equals(that.Fact);
        }