Hello!

A few days ago I wrote a post about one of the new capabilities that we have thanks to Roslyn: [String.Format () vs String Interpolation]. As a final conclusion,Ā if you want to share code with Visual Studio 2013, you should notĀ use it.

However, today ReSharper encourages me to use the String Interpolation feature becauseĀ is one of the options that we find in R#Ā smart actions, convert String.Format() to String Interpolation.

Clipboard02

Yesterday on twitter, someone told me that maybe this affected the clarity of the code. Well, in the following example a conversion of a String.Format there with more than 20 arguments, I think I prefer the end result

RS String Interpolation

Greetings @ Home

/El Bruno

One response to “ENG [#VS2015] String Interpolation and #ReSharper, you must love it!”

  1. Vincent Siron Avatar
    Vincent Siron

    I don’t like it, and prefer syntax like string.Join(“, “, Age, AgeConfidence…….) for your override.

    Like

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading