47 references to Concat
Aspire.Cli.Tests (5)
Certificates\CertificateProcessRunnerTests.cs (2)
33var expectedStandardOutput = string.Concat(Enumerable.Repeat(StandardOutputLine + Environment.NewLine, LineCount)); 34var expectedStandardError = string.Concat(Enumerable.Repeat(StandardErrorLine + Environment.NewLine, LineCount));
Commands\DoctorCommandTests.cs (2)
154var stdoutText = string.Concat(outputWriter.Logs); 1027var stdoutText = string.Concat(outputWriter.Logs);
Utils\TerminalLinkAssert.cs (1)
24var concatenated = string.Concat(matches.Select(m => m.Groups["text"].Value));
Aspire.Hosting.CodeGeneration.Python (1)
AtsPythonCodeGenerator.cs (1)
2263return SanitizePythonTypeName(typeName + string.Concat(clrType.GetGenericArguments().Select(GetClrTypeName)));
Aspire.Hosting.Radius (1)
Publishing\RadiusInfrastructureBuilder.cs (1)
1358return string.Concat(parts.Select(static p => p.Literal));
installer.tasks (1)
GenerateFileVersionProps.cs (1)
117string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
Microsoft.AspNetCore.Components.AI (1)
Blocks\RichContentBlock.cs (1)
19public string RawText => _cachedText ??= string.Concat(_segments);
Microsoft.CodeAnalysis.Features (2)
Completion\CompletionDescription.cs (1)
67Interlocked.CompareExchange(ref field, string.Concat(TaggedParts.Select(p => p.Text)), null);
QuickInfo\QuickInfoSection.cs (1)
55Interlocked.CompareExchange(ref field, string.Concat(TaggedParts.Select(t => t.Text)), null);
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\Legacy\CSharpCodeParser.cs (1)
1375var rawValue = string.Concat(TokenBuilder.ToList().Nodes.Select(s => s.Content)).Trim();
Microsoft.DotNet.SharedFramework.Sdk (1)
src\ValidateFileVersions.cs (1)
86string.Concat(versionlessFiles.Select(f => Environment.NewLine + f)));
Microsoft.Extensions.AI.Abstractions.Tests (4)
ChatCompletion\ChatMessageTests.cs (2)
112Assert.Equal(string.Concat(Enumerable.Range(0, messageCount).Select(i => $"text-{i}")), message.Text); 113Assert.Equal(string.Concat(Enumerable.Range(0, messageCount).Select(i => $"text-{i}")), message.ToString());
SpeechToText\SpeechToTextResponseTests.cs (2)
96Assert.Equal(string.Concat(Enumerable.Range(0, contentCount).Select(i => $"text-{i}")), response.Text); 97Assert.Equal(string.Concat(Enumerable.Range(0, contentCount).Select(i => $"text-{i}")), response.ToString());
Microsoft.Extensions.AI.OpenAI.Tests (18)
OpenAIChatClientTests.cs (5)
244Assert.Equal("Hello! How can I assist you today?", string.Concat(updates.Select(u => u.Text))); 1334Assert.Equal("", string.Concat(updates.Select(u => u.Text))); 1737Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 1967string reasoningText = string.Concat(updates.SelectMany(u => u.Contents).OfType<TextReasoningContent>().Select(r => r.Text)); 1971Assert.Equal("9.8 is larger.", string.Concat(updates.Select(u => u.Text)));
OpenAIResponseClientTests.cs (13)
309Assert.Equal("The sum of the first 5 positive integers is 15.", string.Concat(updates.Select(u => u.Text))); 441Assert.Equal("The solution is 42.", string.Concat(updates.Where(u => u.Role == ChatRole.Assistant).Select(u => u.Text))); 465var allReasoningText = string.Concat(reasoningUpdates.Select(u => u.Contents.OfType<TextReasoningContent>().First().Text)); 756Assert.Equal("Hello! How can I assist you today?", string.Concat(updates.Select(u => u.Text))); 3121Assert.Equal("Hello! How can I assist you today?", string.Concat(updates.Select(u => u.Text))); 3212Assert.Equal(" assist you today?", string.Concat(updates.Select(u => u.Text))); 4202Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 4283Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 4420Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 4498Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 4576Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 4773Assert.Equal("Hello!", string.Concat(updates.Select(u => u.Text))); 6080Assert.Equal("It's 25°C and sunny in Paris.", string.Concat(updates.Select(u => u.Text)));
Microsoft.Extensions.DataIngestion.Tests (1)
Chunkers\OverlapTokenChunkerTests.cs (1)
59Assert.NotEmpty(string.Concat(chunks.Select(c => c.Content)));
Microsoft.Gen.ContextualOptions (1)
Emitter.cs (1)
38{{{string.Concat(optionsContextType.OptionsContextProperties.OrderBy(x => x).Select(property => $@"
Microsoft.Maui.Controls (1)
FormattedString.cs (1)
37 public override string ToString() => string.Concat(Spans.Select(span => span.Text));
Microsoft.ML.Tokenizers.Tests (2)
TiktokenTests.cs (1)
934var reconstructed = string.Concat(tokens.Select(t => t.Value));
TokenizerTests.cs (1)
25string.Concat(Enumerable.Repeat("abcdefghijklmnopqrstuvwxyz", 100)),
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (2)
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathPattern.cs (1)
567private string GetDebuggerDisplay() => string.Concat(Segments.Select(s => s.GetDebuggerDisplay()));
src\sdk\src\StaticWebAssetsSdk\Tasks\Data\StaticWebAssetPathSegment.cs (1)
56string.Concat(Parts.Select(p => p.IsLiteral ? p.Name.ToString() : $"{{{p.Name}}}").Prepend("#[").Append($"]{(IsPackOnly ? "~" : IsOptional ? (IsPreferred ? "!" : "?") : "")}"));
Microsoft.NET.Sdk.StaticWebAssets.Tasks (2)
Data\StaticWebAssetPathPattern.cs (1)
567private string GetDebuggerDisplay() => string.Concat(Segments.Select(s => s.GetDebuggerDisplay()));
Data\StaticWebAssetPathSegment.cs (1)
56string.Concat(Parts.Select(p => p.IsLiteral ? p.Name.ToString() : $"{{{p.Name}}}").Prepend("#[").Append($"]{(IsPackOnly ? "~" : IsOptional ? (IsPreferred ? "!" : "?") : "")}"));
NuGet.Build.Tasks (1)
BuildTasksUtility.cs (1)
107properties.Add(key, string.Concat(value.Select(e => e + ";")));
System.Text.RegularExpressions.Generator (2)
RegexGenerator.Emitter.cs (2)
685helperName = $"IndexOfAny{(negatedCategory ? "Except" : "")}{string.Concat(categories.Slice(0, numCategories).ToArray().Select(c => c.ToString()))}"; 5000string.Concat(from i in Enumerable.Range(0, count)