equal symbol not working in VB Structured Search

how come I can create an structure search to search for

$var$ <> $val$

but not

$var$ = $val$

I've created a few different types of search patterns to help me refactor my code but any search with an = does not find anything

2 comments
Comment actions Permalink

Hi Robert,

Actually, it is working fine for me with ReSharper 8.0.1.
I've attached a screenshot for a reference. Hope it helps.

Thanks!



Attachment(s):
screen545.png
0
Comment actions Permalink

Here is an example that demos my issue with Structured Search

            '''
            '''
            '$ARGA$ is an exactly one argument placeholder
            '$ARGB$ is an exactly one argument placeholder
            '''
            '''

            Dim mydecA As Decimal = 1.0
            Dim mydecB As Decimal = 5.0
            Dim results As Boolean
            '''
            ''' Search pattern
            ''' Decimal.Compare($ARGA$, $ARGB$) = 0
            ''' Results Not Found

            results = (Decimal.Compare(mydecA, mydecB) = 0)
            '''
            ''' Search pattern
            ''' Decimal.Compare($ARGA$, $ARGB$) <> 0
            ''' Results Found

            results = (Decimal.Compare(mydecA, mydecB) <> 0)
            '''
            ''' Search pattern
            ''' Decimal.Compare($ARGA$, $ARGB$) >= 0
            ''' Results Found

            results = (Decimal.Compare(mydecA, mydecB) >= 0)
            '''
            ''' Search pattern
            ''' Decimal.Compare($ARGA$, $ARGB$) <= 0
            ''' Results Found

            results = (Decimal.Compare(mydecA, mydecB) <= 0)

0

Please sign in to leave a comment.