math-suite/Source/Factorizator/DecimalPair.cs

30 lines
665 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Factorizator
{
public class DecimalPair
{
public decimal First { get; set; }
public decimal Second { get; set; }
public string FirstString { get { return First.ToString(); } }
public string SecondString
{
get
{
if (Second == 0) return "";
else return Second.ToString();
}
}
public DecimalPair() { First = Second = 0; }
public DecimalPair(decimal a, decimal b)
{
First = a; Second = b;
}
}
}