public override string ToString() { var sb = new StringBuilder(); sb.Append("Triangle with Side A: "); sb.Append(Aside.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Side B: "); sb.Append(Bside.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Side C: "); sb.Append(Cside.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Angle AB: "); sb.Append(AngleAB.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Angle BC: "); sb.Append(AngleBC.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Angle AC: "); sb.Append(AngleAC.ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(", Surface: "); sb.Append(CalculateSurface().ToString("0.00", CultureInfo.InvariantCulture)); sb.Append(" and Perimeter: "); sb.Append(CalculatePerimeter().ToString("0.00", CultureInfo.InvariantCulture)); return(sb.ToString()); }