Exemple #1
0
        public override Boolean Equals(AComparable obj)
        {
            ArchiveID id = obj as ArchiveID;

            // Basically we're going to ignore old archives for backup purposes
            if (this.OriginalLocationhHash == null)
            {
                return(false);
            }

            return(this.Owner == id.Owner &&
                   this.Game == id.Game &&
                   this.Type == id.Type &&
                   this.OriginalLocationhHash == id.OriginalLocationhHash);
        }
Exemple #2
0
        public override int CompareTo(object obj)
        {
            ArchiveID id     = obj as ArchiveID;
            int       result = compare(Game, id.Game);

            if (result == 0)
            {
                result = compare(Owner, id.Owner);
            }
            if (result == 0)
            {
                result = compare(Type, id.Type);
            }
            if (result == 0)
            {
                result = compare(OriginalLocationhHash, id.OriginalLocationhHash);
            }

            return(result);
        }