Пример #1
0
        /// <summary>
        ///   <para>Compares this <see cref="CustomUnlock"/> with <paramref name="another"/>.</para>
        /// </summary>
        public int CompareTo(CustomUnlock another)
        {
            int res = SortingOrder.CompareTo(another.SortingOrder);

            if (res == 0)
            {
                res = SortingIndex.CompareTo(another.SortingIndex);
                if (res == 0)
                {
                    res = unlock.CompareTo(another.unlock);
                }
            }
            return(res);
        }