Version

CreateComparisonStringExpression Method

Creates an System.Linq.Expressions.Expression that evaluates the inputted value using the string.Compare method.
Syntax
'Declaration
 
Protected Friend Overridable Function CreateComparisonStringExpression( _
   ByVal fieldName As String, _
   ByVal value As String, _
   ByVal compareValue As Integer, _
   ByVal caseSensitive As Boolean, _
   ByVal comparisonExpression As Func(Of Expression,Expression,Expression) _
) As Expression(Of Func(Of TDataObject,Boolean))
protected internal virtual Expression<Func<TDataObject,bool>> CreateComparisonStringExpression( 
   string fieldName,
   string value,
   int compareValue,
   bool caseSensitive,
   Func<Expression,Expression,Expression> comparisonExpression
)

Parameters

fieldName
The property that will be evaluated on.
value
The value that will be analyzed against.
compareValue
The value to be compared against.
caseSensitive
The comparison should be case sensitive.
comparisonExpression
The expression to be used for the comparison.

Return Value

An System.Linq.Expressions.Expression which will compare based on the criteria.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also