// Using the upper bound "To" as the sorting value;
 public int Compare([AllowNull] InvestmentOptionRule x, [AllowNull] InvestmentOptionRule y)
 {
     return(x.To.CompareTo(y.To));
 }
 public void AddRule(InvestmentOptionRule roiRule) => Rules.Add(roiRule);