Beispiel #1
0
        public int CompareTo(AnimalName other)
        {
            if (other == null)
            {
                return(1);
            }

            int textComparison = AnimalNameTextComparerSource.AnimalNameTextComparer.Compare(Name, other.Name);

            return(textComparison == 0 ? UniqueIdentifier.CompareTo(other.UniqueIdentifier) : textComparison);
        }