Version

GetCompatibleComparisonOperator Method

Gets preferred comparison operator out of availableOperators for the specified data type. If none of the preferred operators are in the availableOperators flags, then it will return the operator associated with the first set bit in the availableOperators. If availableOperators parameter is empty (0), then it will return the default operator deemed the most appropriate for the specified data type.
Syntax
'Declaration
 
Public Shared Function GetCompatibleComparisonOperator( _
   ByVal dataType As Type, _
   ByVal availableOperators As ComparisonOperatorFlags _
) As ComparisonOperator
public static ComparisonOperator GetCompatibleComparisonOperator( 
   Type dataType,
   ComparisonOperatorFlags availableOperators
)

Parameters

dataType
Data type
availableOperators
Available operators

Return Value

Preferred comparison operator for the specified data type
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