Пример #1
0
        public int CompareTo(Prototype other)
        {
            int res = CurrentMeasurement.CompareTo(other.CurrentMeasurement);

            if (res == 0)
            {
                res = Size.CompareTo(other.Size);
            }

            return(res);
        }
Пример #2
0
 public override string ToString() => $"Name: {Name}, Size: {Size} {CurrentMeasurement.ToString()}";