A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SonarSource/sonar-dotnet/issues/7324 below:

StringBuilder used in concatenation · Issue #7324 · SonarSource/sonar-dotnet · GitHub

The following code sample flags S3063. Even though ToString is not called the stringbuilder is still used. Is this a false positive?

using System;
using System.Text;

namespace Test
{
    internal static class Program
    {
        static void Main()
        {
            StringBuilder stringbuilder = new StringBuilder("stringbuilder");
            string text = stringbuilder + "test";
            Console.WriteLine(text);
        }
    }
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4