예제 #1
0
 public override string ToString()
 {
     return($"{_lowerBound.Lower()}..{_upperBound.Upper()}");
 }
예제 #2
0
 /// <remarks>
 /// <c>..</c> separator used instead of standard <c>,</c> in order to to avoid confusion with rational ranges.
 /// <para><c>[ ]</c> used for closed bounds.</para>
 /// <para><c>( )</c> used for open bounds, as it is more clear than inverted brackets <c>] [</c>.</para>
 /// </remarks>
 public override string ToString()
 {
     return(string.Format("{0}..{1}", _lowerBound.Lower(), _upperBound.Upper()));
 }