String Interpolation in Visual Studio 2015 and IFormatProvider (CA1305)

前端 未结 4 1335
陌清茗
陌清茗 2021-02-02 08:21

The new string interpolation style in Visual Studio 2015 is this:

Dim s = $\"Hello {name}\"

But if I use this the code analysis tells me I brea

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-02 09:23

    I have found a Nuget-Package that covers the code that jessehouwing presented in his answer.

    The Nuget package 'StringInterpolationBridge' (source) adds this code to every project.

提交回复
热议问题