PositiveGuy
PositiveGuy

Reputation: 47743

StringBuilder string format

scriptValues.AppendFormat("something = {1};", SessionID.ToString());

in the above, I get a R# warning or something that says I need to add a 3rd param. When I look with intellisense it shows string formatter. Do I need one here?

Upvotes: 0

Views: 281

Answers (1)

Grzenio
Grzenio

Reputation: 36649

It should be scriptValues.AppendFormat(@"something = {0}";", SessionID.ToString());

Upvotes: 4

Related Questions