コード例 #1
0
ファイル: Prototype.cs プロジェクト: OlyaOlga/Product
        public int CompareTo(Prototype other)
        {
            int res = CurrentMeasurement.CompareTo(other.CurrentMeasurement);

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

            return(res);
        }
コード例 #2
0
ファイル: Prototype.cs プロジェクト: OlyaOlga/Product
 public override string ToString() => $"Name: {Name}, Size: {Size} {CurrentMeasurement.ToString()}";