示例#1
0
 private static string GetName(CustomMetricEval eval, string name)
 {
     return(!string.IsNullOrWhiteSpace(name) ? name : $"Custom({eval.Method.Name})");
 }
示例#2
0
 public CustomMetric
     (CustomMetricEval eval, string name = null, int num = 1) : base(GetName(eval, name), num)
 {
     _feval = eval;
 }