What is the difference between a regular string and a verbatim string?

前端 未结 6 1158
轻奢々
轻奢々 2020-11-22 10:11

I have a trial version of Resharper and it always suggests that I switch regular strings to verbatim strings. What is the difference?

6条回答
  •  生来不讨喜
    2020-11-22 10:28

    If you want to suppress the ReSharper warnings, you can use:

    Localizable(false)
    

    For things like parameters, file locations, etc., this could be a good solution.

提交回复
热议问题