コード例 #1
0
 /// <summary>
 ///     CGet longest Side and sum of Remaining sides - determines whether this is a valid Triangle.
 /// </summary>
 private void CalculateSides()
 {
     LongestSide         = Sides.OrderBy(x => x).Last();
     SumOfRemainingSides = Sides.OrderByDescending(x => x).Skip(1).Sum();
 }