Skip to content

Commit 81e3cde

Browse files
Update StringConcatFunction.vb
1 parent e11b1ad commit 81e3cde

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

VB/Dashboard_StringConcatAggregate/StringConcatFunction.vb

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

76
Namespace Dashboard_StringConcatAggregate
87
Friend Class StringConcatFunction
9-
Implements ICustomAggregateFunction, ICustomFunctionOperatorBrowsable, ICustomFunctionOperatorCategory
8+
Implements ICustomAggregateFunction, ICustomFunctionOperatorBrowsable
109

1110
Public ReadOnly Property Name() As String Implements DevExpress.Data.Filtering.ICustomFunctionOperator.Name
1211
Get
@@ -32,27 +31,20 @@ Namespace Dashboard_StringConcatAggregate
3231
End Get
3332
End Property
3433

35-
3634
Public ReadOnly Property Category() As FunctionCategory Implements ICustomFunctionOperatorBrowsable.Category
3735
Get
3836
Return DevExpress.Data.Filtering.FunctionCategory.Text
3937
End Get
4038
End Property
4139

42-
Public ReadOnly Property FunctionCategory() As String Implements ICustomFunctionOperatorCategory.FunctionCategory
43-
Get
44-
Return "Aggregate"
45-
End Get
46-
End Property
47-
48-
Public Function CreateEvaluationState(ByVal inputType As Type) As Type Implements ICustomAggregateFunction.CreateEvaluationState
49-
Return GetType(StringConcatState)
50-
End Function
51-
5240
Public Function Evaluate(ParamArray ByVal operands() As Object) As Object Implements DevExpress.Data.Filtering.ICustomFunctionOperator.Evaluate
5341
Throw New NotImplementedException()
5442
End Function
5543

44+
Public Function GetAggregationContextType(ByVal inputType As Type) As Type
45+
Return GetType(StringConcatState)
46+
End Function
47+
5648
Public Function IsValidOperandCount(ByVal count As Integer) As Boolean Implements ICustomFunctionOperatorBrowsable.IsValidOperandCount
5749
Return count <= MaxOperandCount AndAlso count >= MinOperandCount
5850
End Function

0 commit comments

Comments
 (0)