"ReSharper disable once LocalizableElement" does not work properly

Hi

Using the function "Disable once with comment" does not work the way I expect.
Having exclusion comment added, sometimes simply does not work.

Example:
        Dim tt As String = "1234"
        ' ReSharper disable once LocalizableElement
        If tt = "1234" Then
            ' ReSharper disable once LocalizableElement
            tt = "5678"
        End If


the underlined 5678 is marked by ReShaper as "Move to resource" even if the comment is added.

Any explanation?

Thanks
Sven

Please sign in to leave a comment.