51 references to Aggregate
CodeGenerator (5)
FeatureCollectionGenerator.cs (1)
216return values.Any() ? values.Select(formatter).Aggregate((a, b) => a + b) : "";
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
300.Aggregate((a, b) => a | b); 305.Aggregate((a, b) => a | b); 310return values.Any() ? values.Select(formatter).Aggregate((a, b) => a + b) : ""; 315return values.Any() ? values.Select(formatter).Aggregate((a, b) => a + b) : "";
dotnet-svcutil-lib (9)
CommandProcessorOptions.cs (6)
166fileOptions.AddWarning(string.Format(SR.WrnExtraParamsOnInputFileParamIgnoredFormat, disallowedSwitchesOnParamsFilesProvided.Select(s => $"'{s.Name}'").Aggregate((msg, n) => $"{msg}, '{n}'")), 0); 306this.AddWarning(string.Format(SR.WrnUnexpectedInputsFormat, this.Inputs.Select(i => $"{i}''").Aggregate((msg, i) => $"{msg}, {i}"))); 354var projectItems = projects.Aggregate((projectMsg, projectItem) => $"{projectMsg}, {projectItem}").Trim(',').Trim(); 515.Select(f => $"'{f}'").Aggregate((files, f) => $"{files}, {f}"); 663invalidNamespaces.Select(n => $"'{n.Key},{n.Value}'").Aggregate((msg, n) => $"{msg}, {n}"))); 1046.Aggregate((num, s) => num + ", " + s).ToString();
Shared\MSBuildProj.cs (1)
669targetFrameworksNode.SetValue(_targetFrameworks.Aggregate((tfs, tf) => $"{tfs};{tf}"));
Shared\Options\ListValue.cs (1)
215var value = this.InnerList.Count > 0 ? this.InnerList.Select(i => $"\"{i}\"").Aggregate((str, s) => $"{str}, {s}") : string.Empty;
Shared\Options\OptionValueParser.cs (1)
173value = list.Select(item => $"'{item}'").Aggregate((num, s) => num + ", " + s).ToString();
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
461.Aggregate((msg, b) => $"{msg}{Environment.NewLine}{b}"), scriptPath);
dotnet-user-jwts (1)
Helpers\ConsoleTable.cs (1)
91.Aggregate((previousRowColumn, nextRowColumn) => previousRowColumn + nextRowColumn) + " |";
Microsoft.AspNetCore.Authentication.Negotiate (1)
Internal\LdapAdapter.cs (1)
41var distinguishedName = settings.Domain.Split('.').Select(name => $"dc={name}").Aggregate((a, b) => $"{a},{b}");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
src\Servers\Kestrel\shared\KnownHeaders.cs (4)
300.Aggregate((a, b) => a | b); 305.Aggregate((a, b) => a | b); 310return values.Any() ? values.Select(formatter).Aggregate((a, b) => a + b) : ""; 315return values.Any() ? values.Select(formatter).Aggregate((a, b) => a + b) : "";
Microsoft.AspNetCore.WebSockets.Tests (2)
WebSocketCompressionMiddlewareTests.cs (2)
41Assert.Equal("permessage-deflate; server_no_context_takeover", response.Headers.GetValues(HeaderNames.SecWebSocketExtensions).Aggregate((l, r) => $"{l}; {r}")); 103Assert.Equal(expectedResponse, response.Headers.GetValues(HeaderNames.SecWebSocketExtensions).Aggregate((l, r) => $"{l}; {r}"));
Microsoft.Build.Tasks.UnitTests (2)
WriteCodeFragment_Tests.cs (2)
569var csMultilineString = lines.Aggregate((l1, l2) => l1 + EscapedLineSeparator + l2); 607.Aggregate((l1, l2) => $"{l1}&{VBLineSeparator}&{l2}");
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\LookupPositionTests.cs (1)
3154return deltas.Aggregate((f, g) => stack =>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\FunctionPointerTypeSymbolTests.cs (1)
904var overallEquality = returnEquality | callingConventionEquality | (parameterEqualities.Length > 0 ? parameterEqualities.Aggregate((acc, cur) => acc | cur) : 0);
Microsoft.CodeAnalysis.UnitTests (1)
Collections\RopeTests.cs (1)
109var concatted = shortStrings.Aggregate((a, b) => a + b);
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
213expressions.Aggregate(factory.LogicalAndExpression))); 317expressions.Aggregate(factory.LogicalAndExpression)));
Microsoft.DotNet.Build.Tasks.Packaging (3)
GenerateNuSpec.cs (3)
320.Aggregate(AggregateVersions) 322dependenciesById.Select(x => x.Include).Aggregate(AggregateInclude), 323dependenciesById.Select(x => x.Exclude).Aggregate(AggregateExclude)
Microsoft.ML.OnnxConverter (7)
OnnxContextImpl.cs (7)
347_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 358_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 369_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 380_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 391_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 402_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size"); 413_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (2)
557int valCount = inputShape.Where(x => x > 0).Aggregate((x, y) => x * y); 883_denominator = _tensorShape.Where(x => x > 0).Aggregate((a, x) => a * x);
OnnxTypeParser.cs (1)
237else if (shape.Count() != 0 && shape.Aggregate((x, y) => x * y) > 0)
Microsoft.ML.TensorFlow (2)
TensorflowTransform.cs (2)
723var tensorSize = tensor.TensorShape.dims.Where(x => x > 0).Aggregate((x, y) => x * y); 738var tensorSize = tensor.TensorShape.dims.Where(x => x > 0).Aggregate((x, y) => x * y);
Microsoft.ML.Tokenizers (1)
Utils\TokenizerExtensions.cs (1)
20var (minSource, minValue) = keys.Zip(values, (first, second) => (first, second)).Aggregate((min, x) => min.second <= x.second ? min : x);
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (2)
894var tensorSize = tensor.TensorShape.dims.Where(x => x > 0).Aggregate((x, y) => x * y); 909var tensorSize = tensor.TensorShape.dims.Where(x => x > 0).Aggregate((x, y) => x * y);
SocialSample (1)
Startup.cs (1)
220context.Failure.Message.Split(Environment.NewLine).Select(s => HtmlEncoder.Default.Encode(s) + "<br>").Aggregate((s1, s2) => s1 + s2));
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\FileExtensionsAttribute.cs (1)
32private string ExtensionsFormatted => ExtensionsParsed.Aggregate((left, right) => left + ", " + right);
System.Windows.Forms.Tests (1)
System\Windows\Forms\PowerStatusTests.cs (1)
35.Aggregate((e1, e2) => (e1 | e2));