public static object Min(FunctionContext context, IEnumerable data, ExpressionNode node) { object obj1 = (object)null; foreach (object obj2 in Aggregates.NotNullValue(data, node, context.GlobalContext)) { if (obj1 == null) { obj1 = obj2; } else if (0 < Aggregates.Compare(obj1, obj2, context, nameof(Min))) { obj1 = obj2; } } return(obj1); }
public static object Min(FunctionContext context, IEnumerable data, ExpressionNode node) { object value = null; foreach (object value2 in Aggregates.NotNullValue(data, node, context.GlobalContext)) { if (null == value) { value = value2; } else if (0 < Aggregates.Compare(value, value2, context, "Min")) { value = value2; } } return(value); }