Skip to content

Commit e11b1ad

Browse files
Update StringConcatFunction.cs
1 parent 84c76d3 commit e11b1ad

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

CS/Dashboard_StringConcatAggregate/StringConcatFunction.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
using DevExpress.Data.Filtering;
22
using DevExpress.DataAccess.Criteria;
3-
using DevExpress.DataAccess.Native.ExpressionEditor;
43
using System;
54
using System.Collections.Generic;
65

76
namespace Dashboard_StringConcatAggregate {
8-
class StringConcatFunction : ICustomAggregateFunction, ICustomFunctionOperatorBrowsable, ICustomFunctionOperatorCategory {
7+
class StringConcatFunction : ICustomAggregateFunction, ICustomFunctionOperatorBrowsable {
98
public string Name => "StringConcat";
109

1110
public int MinOperandCount => 1;
@@ -17,16 +16,14 @@ class StringConcatFunction : ICustomAggregateFunction, ICustomFunctionOperatorBr
1716

1817
public FunctionCategory Category => DevExpress.Data.Filtering.FunctionCategory.Text;
1918

20-
public string FunctionCategory => "Aggregate";
21-
22-
public Type CreateEvaluationState(Type inputType) {
23-
return typeof(StringConcatState);
24-
}
25-
2619
public object Evaluate(params object[] operands) {
2720
throw new NotImplementedException();
2821
}
2922

23+
public Type GetAggregationContextType(Type inputType) {
24+
return typeof(StringConcatState);
25+
}
26+
3027
public bool IsValidOperandCount(int count) {
3128
return count <= MaxOperandCount && count >= MinOperandCount;
3229
}

0 commit comments

Comments
 (0)