29 references to Aggregate
AnalyzerRunner (1)
Program.cs (1)
198var sum = sums.Aggregate(new Statistic(0, 0, 0), (currentResult, value) => currentResult + value);
Microsoft.Arcade.Test.Common (1)
MockEngine.cs (1)
72_output?.WriteLine($"telemetry {eventName}: {properties.Aggregate(string.Empty, (sum, piece) => $"{sum}, {piece.Key} = {piece.Value}")}");
Microsoft.AspNetCore.InternalTesting (1)
TestFileOutputContext.cs (1)
119var name = arguments.Aggregate(method.Name, (a, b) => $"{a}-{(b ?? "null")}");
Microsoft.AspNetCore.Owin.Tests (3)
OwinExtensionTests.cs (3)
45.Aggregate(notFound, (next, middleware) => middleware(next)) 79.Aggregate(notFound, (next, middleware) => middleware(next)) 112.Aggregate(notFound, (next, middleware) => middleware(next))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\ConfigurationReader.cs (1)
200return stringProtocols?.Aggregate(SslProtocols.None, (acc, current) =>
Microsoft.Build (3)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);
Graph\ProjectInterpretation.cs (1)
394var globalPropertyParts = globalPropertyModifiers?.Aggregate(defaultParts, (currentProperties, modifier) => modifier(currentProperties, projectReference)) ?? defaultParts;
Logging\ProfilerLogger.cs (1)
163.Aggregate(new ProfiledLocation(),
Microsoft.Build.Engine.OM.UnitTests (1)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);
Microsoft.Build.Framework (1)
Profiler\ProfilerResult.cs (1)
44return ProfiledLocations.Keys.Aggregate(0, (acum, location) => acum + location.GetHashCode());
Microsoft.Build.Tasks.Core (2)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);
NativeMethods.cs (1)
1459.Aggregate(new StringBuilder(), (builder, v) => builder.Append(v.ToString("x2")))),
Microsoft.Build.Utilities.Core (1)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);
Microsoft.Cci.Extensions (1)
Extensions\TypeExtensions.cs (1)
483return identity.PublicKeyToken.Aggregate("", (s, b) => s += b.ToString("x2"));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
200return xMembers.Aggregate(currentHash, (a, p) =>
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
38var publicKeyToken = thisAssemblyName.GetPublicKeyToken().Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAsyncSpillTests.cs (1)
3400var expected = new bool[] { false, true, false, true, false }.Aggregate("", (str, next) => str += $"{next}{Environment.NewLine}");
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\OptionsDiagnosticAnalyzer.cs (1)
69_mismatchedOptions.Aggregate("Mismatched calls: ", (s, m) => s + "\r\nfrom : " + m.Key + ", options :" + m.Value));
Microsoft.CodeAnalysis.Workspaces (3)
Shared\Extensions\INamespaceSymbolExtensions.Comparer.cs (1)
19=> GetNameParts(obj).Aggregate(0, (a, v) => Hash.Combine(v, a));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
200return xMembers.Aggregate(currentHash, (a, p) =>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Helpers\MefHostServicesHelpers.cs (1)
38var publicKeyToken = thisAssemblyName.GetPublicKeyToken().Aggregate(string.Empty, (s, b) => s + b.ToString("x2"));
Microsoft.DotNet.AsmDiff (1)
DiffRecorder.cs (1)
61return _styleStack.Aggregate(DiffStyle.None, (current, diffStyle) => current | diffStyle);
Microsoft.DotNet.VersionTools (1)
Automation\PullRequestCreator.cs (1)
189.Aggregate(string.Empty, (acc, line) => acc + line.MarkdownLine + "\r\n");
Microsoft.Extensions.Configuration (1)
InternalConfigurationRootExtensions.cs (1)
27.Aggregate(Enumerable.Empty<string>(),
Microsoft.ML.EntryPoints (1)
JsonUtils\JsonManifestUtils.cs (1)
66propertyInfos = epKind.GetInterfaces().Aggregate(propertyInfos, (current, face) => current.Union(face.GetProperties()));
MSBuild (1)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);
MSBuildTaskHost (1)
FileUtilities.cs (1)
1276return paths.Aggregate(root, Path.Combine);