48 references to Zip
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\TemplateCustomHive.cs (1)
48.Zip(TemplatePackageIds, (path, id) => (path, id));
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\TemplateCustomHive.cs (1)
48.Zip(TemplatePackageIds, (path, id) => (path, id));
Microsoft.AspNetCore.Routing.Tests (1)
Matching\MatcherAssert.cs (1)
51var zipped = keys.Zip(values, (k, v) => new KeyValuePair<string, object>(k, v));
Microsoft.Build.UnitTests.Shared (1)
EngineTestEnvironment.cs (1)
234var pairs = expectedLoggerPairs.Zip(actualLoggerPairs, (expected, actual) => (expected, actual));
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
483methodSymbol.Parameters.Zip(newMethodSymbol.Parameters, (p1, p2) => (p1, p2)).All(
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.State.cs (1)
151var parameters = ParameterTypes.Zip(_parameterRefKinds,
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Rename\CSharpInlineRenameServiceTests.cs (1)
43foreach (var (elementFromX, elementFromY) in x.Zip(y, (elementFromX, elementFromY) => (elementFromX, elementFromY)))
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenAsyncLocalsTests.cs (1)
38from pair in actualLines.Zip(actualLines.Skip(1), (line1, line2) => new { line1, line2 })
Microsoft.CodeAnalysis.CSharp.Features (1)
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider_Update.cs (1)
47foreach (var (parameter, fieldOrProperty) in parameters.Zip(fieldsOrProperties, static (a, b) => (a, b)))
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
QuickInfo\ToolTipAssert.cs (2)
68foreach (var (expectedElement, actualElement) in expected.Elements.Zip(actual.Elements, (expectedElement, actualElement) => (expectedElement, actualElement))) 84foreach (var (expectedRun, actualRun) in expected.Runs.Zip(actual.Runs, (expectedRun, actualRun) => (expectedRun, actualRun)))
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Debugger\MemberInfo\TypeImpl.cs (1)
303map.InterfaceMethods.Zip(map.TargetMethods, (interfaceMethod, implementingMethod) =>
Microsoft.CodeAnalysis.Features (1)
AddConstructorParametersFromMembers\AddConstructorParametersFromMembersCodeRefactoringProvider.State.cs (1)
127parametersForSelectedMembers.Zip(selectedMembers, (parameter, selectedMember) => (parameter, selectedMember));
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\ThrowingDiagnosticAnalyzer.cs (1)
98var membersHandled = AllAnalyzerMemberNames.Zip(handled, (m, h) => new { Member = m, Handled = h });
Microsoft.CodeAnalysis.Workspaces (2)
Editing\SyntaxGenerator.cs (1)
2005return TupleTypeExpression(elementTypes.Zip(elementNames, TupleElementExpression));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
483methodSymbol.Parameters.Zip(newMethodSymbol.Parameters, (p1, p2) => (p1, p2)).All(
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlCreation.cs (1)
41foreach (var (file, folders) in files.Zip(fileContainingFolders, (file, containingFolders) => (file, containingFolders)))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
CodeStyle\NamingStylePreferencesUpgradeTests.cs (1)
196var enumNamesAndValues = type.GetEnumNames().Zip(type.GetEnumValues().Cast<object>(), (name, value) => (name, value));
Microsoft.Data.Analysis.Tests (6)
DataFrameTests.cs (6)
664foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in columnNames.Zip(((IDataView)df).Schema, (e1, e2) => (e1, e2))) 668foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in prefixNames.Zip(columnNames, (e1, e2) => (e1, e2))) 676foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in columnNames.Zip(prefixNames, (e1, e2) => (e1, e2))) 683foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in ((IDataView)df).Schema.Zip(columnNames, (e1, e2) => (e1, e2))) 687foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in columnNames.Zip(suffixNames, (e1, e2) => (e1, e2))) 695foreach ((DataViewSchema.Column First, DataViewSchema.Column Second) in columnNames.Zip(suffixNames, (e1, e2) => (e1, e2)))
Microsoft.DotNet.Build.Tasks.Feed (1)
src\model\TargetChannelConfig.cs (1)
191ContentTypes.Zip(other.ContentTypes, (l, r) => l.Equals(r)).All(b => b) &&
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
62byte[] reducedHash = fullHash.Take(targetBlockSize).Zip(fullHash.Skip(targetBlockSize), (b1, b2) => (byte)(b1 ^ b2)).ToArray();
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
216.Zip(pvpSnapshotFiles, (pvp, prev) => new RepoOutput
Microsoft.DotNet.SourceBuild.Tasks.Tests (1)
ValidateUsageAgainstBaselineTests.cs (1)
110foreach (var (a, b) in baseline.IgnorePatterns.Zip(data.ActualUsageData.IgnorePatterns, (a, b) => (a, b)))
Microsoft.ML.AutoML (3)
ColumnInference\ColumnGroupingInference.cs (1)
59var tuples = types.Zip(purposes, Tuple.Create).ToList();
Utils\ArrayMath.cs (2)
94return Enumerable.Zip(xArray, yArray, (x, y) => x * y).ToArray(); 107return Enumerable.Zip(xArray, yArray, (x, y) => x + y).ToArray();
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
830var l1Dist = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => Math.Abs(av.Value - bv.Value)).Sum(); 833var dot = a.Items(all: true).Zip(b.Items(all: true), (av, bv) => av.Value * bv.Value).Sum();
Microsoft.ML.Data (2)
Prediction\Calibrator.cs (1)
1985_host.Assert(mins.Zip(maxes, (min, max) => min <= max).All(x => x));
Transforms\ColumnConcatenatingTransformer.cs (1)
362inputs[i].Zip(aliases[i], (name, alias) => (name, alias)));
Microsoft.ML.Ensemble (1)
PipelineEnsemble.cs (1)
684return v1.DenseValues().Zip(v2.DenseValues(), (x1, x2) => x1.Equals(x2)).All(b => b);
Microsoft.ML.IntegrationTests (2)
Common.cs (2)
108foreach (var schemaPair in schema1.Zip(schema2, Tuple.Create)) 131foreach (var rowPair in data1.Zip(data2, Tuple.Create))
Microsoft.ML.OnnxTransformer (1)
OnnxUtils.cs (1)
368foreach (var (l, r) in left.Zip(right, (l, r) => (l, r)))
Microsoft.ML.TestFramework (1)
DataPipe\TestDataPipeBase.cs (1)
160foreach (var (p, d) in promisedCols.Zip(deliveredCols, (p, d) => (p, d)))
Microsoft.ML.Tests (2)
ImagesTests.cs (1)
97.Zip(oldCols, (x, y) => x == y)
Transformers\CustomMappingTests.cs (1)
82Assert.True(inputs.Zip(outputs, (x, y) => y.Together == $"{x.Float1} + {string.Join(", ", x.Float4)}").All(x => x));
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.Transforms (2)
Dracula\MultiCountTable.cs (1)
265_host.Check(table.SlotCount.Zip(inputCols, (count, col) => (count, col)).
PermutationFeatureImportanceExtensions.cs (1)
479topKAccuracies: a?.TopKAccuracyForAllK?.Zip(b.TopKAccuracyForAllK, (a, b) => a - b)?.ToArray(),
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\CompilerServices\Utils.vb (3)
189Enumerable.All(Enumerable.Zip(pis1, 209Enumerable.All(Enumerable.Zip(pis1, 300Enumerable.All(Enumerable.Zip(args1,