コード例 #1
0
 /// <summary>
 /// Checks, if the result has a valid result value.
 /// </summary>
 /// <param name="result">The result.</param>
 /// <returns>True, if the result has a valid result value.</returns>
 private static bool HasValidResultValue(IntegerResult result)
 {
     return(!result.IsCancelled && !double.IsNaN(result.Value) && !double.IsInfinity(result.Value));
 }
コード例 #2
0
 /// <inheritdoc />
 public double GetMetricRepresentation(IntegerResult result)
 {
     return(result.Value);
 }