public static string GetDescription()

in TeamCity.CSharpInteractive/StartInfoExtensions.cs [8:34]


    public static string GetDescription(this IStartInfo? startInfo, int? processId = default)
    {
        var sb = new StringBuilder();
        if (processId.HasValue)
        {
            sb.Append(processId.Value);
        }

        var shortName = startInfo?.ShortName;
        // ReSharper disable once InvertIf
        if (!string.IsNullOrWhiteSpace(shortName))
        {
            if (sb.Length != 0)
            {
                sb.Append(' ');
            }

            sb.Append(shortName.EscapeArg());
        }

        if (sb.Length == 0)
        {
            sb.Append("The");
        }

        return sb.ToString();
    }