To make ReSharper aware of a custom string formatting method
  1. Reference ReSharper code annotation attributes using either of two methods described in .
  2. Annotate your custom string formatting method with the StringFormatMethodAttribute attribute, which takes a single argument - name of format parameter as a string:
    stringFormattingMethods_02