5 types derived from Tuple
PresentationCore (1)
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (1)
20public class HwndDpiInfo : Tuple<DpiAwarenessContextValue, DpiScale2>
PresentationFramework (3)
System\Windows\Controls\VirtualizingStackPanel.cs (2)
11918private class ContainerSizeDual : Tuple<Size, Size> 11938private class UniformOrAverageContainerSizeDual : Tuple<Double, Double>
System\Windows\Documents\MsSpellCheckLib\SpellChecker\SpellChecker.cs (1)
655private class HasErrorsResult : Tuple<string, bool>
System.Xaml (1)
System\Xaml\Schema\ReferenceEqualityComparer.cs (1)
10internal class ReferenceEqualityTuple<T1, T2> : Tuple<T1, T2>
258 instantiations of Tuple
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (7)
678tuple = new Tuple<string, object>(originalStringValue, ReturnBoxedValue(_attributePSVI.typedAttributeValue, AttributeSchemaInfo.XmlType, unwrapTypedValue)); 683tuple = new Tuple<string, object>(originalStringValue, this.Value); 693tuple = new Tuple<string, object>(originalStringValue, _atomicValue); 700tuple = new Tuple<string, object>(originalStringValue, string.Empty); 711tuple = new Tuple<string, object>(originalStringValue, value); 726tuple = new Tuple<string, object>(originalStringValue, originalStringValue); 741return new Tuple<XmlSchemaType, object>(tuple_13.Item1, tuple_13.Item3);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
238Tuple<Type, string> key = new Tuple<Type, string>(type, name); 2710Tuple<Type, string> key = new Tuple<Type, string>(item.Value.LocalType, item.Key);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
281new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)), 282new Tuple<string, string> (DiagnosticStrings.MessageTag, XmlEncode(exception.Message)), 283new Tuple<string, string> (DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))), // Stack trace is sometimes null 284new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
392var testFileTable = generatedFiles.Select(g => new Tuple<string, string>(g, baselineFiles.FirstOrDefault(b =>
ILCompiler.Compiler (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
ILCompiler.DependencyAnalysisFramework (3)
DgmlWriter.cs (1)
160var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(nodeDepender, nodeDependerOther);
FirstMarkLogStrategy.cs (1)
80var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(markData.Reason1, markData.Reason2);
FullGraphLogStrategy.cs (1)
152var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(markData.Reason1, markData.Reason2);
ILCompiler.ReadyToRun (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
Infrastructure.Common (20)
OSHelper.cs (20)
31new Tuple<string, OSID>("azurelinux", OSID.AzureLinux), 32new Tuple<string, OSID>("Mariner", OSID.AzureLinux), // CBL-Mariner (legacy name for Azure Linux) 33new Tuple<string, OSID>("debian", OSID.Debian), 34new Tuple<string, OSID>("fedora", OSID.Fedora), 35new Tuple<string, OSID>("sles", OSID.SLES), 36new Tuple<string, OSID>("opensuse", OSID.OpenSUSE), 37new Tuple<string, OSID>("osx", OSID.OSX), 38new Tuple<string, OSID>("rhel", OSID.RHEL), 39new Tuple<string, OSID>("ubuntu", OSID.Ubuntu), 43new Tuple<string, OSID>("win81", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2), 44new Tuple<string, OSID>("win7", OSID.Windows_7 | OSID.Windows_Server_2008_R2), 53new Tuple<string, OSID>("Microsoft Azure Linux", OSID.AzureLinux), 54new Tuple<string, OSID>("Microsoft Windows 6.0.", OSID.Windows_Server_2008), 55new Tuple<string, OSID>("Microsoft Windows 6.1.", OSID.Windows_7 | OSID.Windows_Server_2008_R2), 56new Tuple<string, OSID>("Microsoft Windows 6.2.", OSID.Windows_8 | OSID.Windows_Server_2012), 57new Tuple<string, OSID>("Microsoft Windows 6.3.", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2), 58new Tuple<string, OSID>("Microsoft Windows 10.", OSID.Windows_10 | OSID.Windows_Server_2016), 59new Tuple<string, OSID>(MicrosoftWindowsPhoneName, OSID.WindowsPhone), 60new Tuple<string, OSID>(MicrosoftWindowsName, OSID.AnyWindows), // reserved for "Don't know which version" 61new Tuple<string, OSID>("Darwin", OSID.OSX),
Microsoft.AspNetCore.Components (1)
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
Microsoft.AspNetCore.Components.Endpoints (1)
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
Microsoft.AspNetCore.Components.Server (1)
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (1)
41_store[category] = new CategoryLink(activityLink, tag);
Microsoft.Build (49)
BackEnd\BuildManager\LegacyThreadingData.cs (1)
93_legacyThreadingEventsById[submissionId] = new Tuple<AutoResetEvent, ManualResetEvent>(
Construction\Solution\SolutionProjectGenerator.cs (9)
107new Tuple<string, string>("Configuration", null), // This is the solution configuration in a metaproject, and project configuration on an actual project 108new Tuple<string, string>("Platform", null), // This is the solution platform in a metaproject, and project platform on an actual project 109new Tuple<string, string>("BuildingSolutionFile", "true"), 110new Tuple<string, string>("CurrentSolutionConfigurationContents", null), 111new Tuple<string, string>("SolutionDir", null), 112new Tuple<string, string>("SolutionExt", null), 113new Tuple<string, string>("SolutionFileName", null), 114new Tuple<string, string>("SolutionName", null), 115new Tuple<string, string>(SolutionPathPropertyName, null)
Evaluation\Expander.cs (2)
4331AvailableStaticMethods.TryAdd(typeName, simpleMethodName, new Tuple<string, Type>(assemblyQualifiedTypeName, receiverType)); 4372AvailableStaticMethods.TryAdd(typeName, new Tuple<string, Type>(typeName, receiverType));
Resources\Constants.cs (37)
237var environmentType = new Tuple<string, Type>(null, typeof(Environment)); 238var directoryType = new Tuple<string, Type>(null, typeof(Directory)); 239var fileType = new Tuple<string, Type>(null, typeof(File)); 240var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation)); 241var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform)); 282availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 283availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 284availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 287availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions))); 288availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte))); 289availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char))); 290availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert))); 291availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime))); 292availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset))); 293availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal))); 294availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double))); 295availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum))); 296availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid))); 297availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16))); 298availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32))); 299availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64))); 300availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path))); 301availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math))); 302availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16))); 303availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32))); 304availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64))); 305availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte))); 306availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single))); 307availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String))); 308availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer))); 309availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan))); 310availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex))); 311availableStaticMethods.TryAdd("System.Uri", new Tuple<string, Type>(null, typeof(Uri))); 312availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder))); 313availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version))); 314availableStaticMethods.TryAdd("Microsoft.Build.Utilities.ToolLocationHelper", new Tuple<string, Type>("Microsoft.Build.Utilities.ToolLocationHelper, Microsoft.Build.Utilities.Core, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null)); 318var operatingSystemType = new Tuple<string, Type>(null, typeof(OperatingSystem));
Microsoft.Build.Framework (1)
Logging\LoggerParametersHelper.cs (1)
61yield return new Tuple<string, string?>(parameterAndValue[0], parameterAndValue.Length > 1 ? parameterAndValue[1] : null);
Microsoft.Build.Tasks.Core (6)
AssemblyDependency\ReferenceTable.cs (1)
2098redistListAndOtherFrameworkName = new Tuple<RedistList, string>(redistList, otherFrameworkName);
ResolveSDKReference.cs (5)
568LogErrorOrWarning(new Tuple<string, object[]>("ResolveSDKReference.SDKReferenceIncorrectFormat", [referenceItem.ItemSpec])); 620LogErrorOrWarning(new Tuple<string, object[]>("ResolveSDKReference.CouldNotResolveSDK", [reference.ReferenceItem.ItemSpec])); 986ResolutionErrors.Add(new Tuple<string, object[]>(resourceId, parameters)); 994ResolutionWarnings.Add(new Tuple<string, object[]>(resourceId, parameters)); 1547StatusMessages.Add(new Tuple<string, object[]>(resource, parameters));
Microsoft.Build.Tasks.Git (1)
RepositoryTask.cs (1)
151=> new(typeof(RepositoryTask), (string.IsNullOrEmpty(ConfigurationScope) ? "*" : ConfigurationScope) + ":" + repositoryId);
Microsoft.CodeAnalysis.CSharp (4)
Symbols\Source\SourceAssemblySymbol.cs (1)
2323locationAndValue = new Tuple<Location, string>(GetAssemblyAttributeLocationForDiagnostic(nodeOpt), displayName);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
285return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(null, ImmutableArray<NamedTypeSymbol>.Empty); 470return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(baseType, baseInterfacesRO); 683return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(localBase, localInterfaces.ToImmutableAndFree());
Microsoft.DotNet.Build.Tasks.Packaging (1)
NugetPropertyStringProvider.cs (1)
68return new Tuple<string, string>(key, value);
Microsoft.Maui.Controls (13)
Brush\BrushTypeConverter.cs (1)
297 return new Tuple<Point, Point>(startPoint, endPoint);
TableView\TableView.cs (1)
203 SetPath(cell, new Tuple<int, int>(section, row));
TemplatedItemsList.cs (9)
445 return new Tuple<int, int>(-1, -1); 447 return new Tuple<int, int>(0, GetGlobalIndexOfItem(item)); 456 return new Tuple<int, int>(group, index); 462 return new Tuple<int, int>(-1, -1); 468 return new Tuple<int, int>(0, GetGlobalIndexOfItem(item)); 470 return new Tuple<int, int>(-1, -1); 480 return new Tuple<int, int>(groupIndex, i); 484 return new Tuple<int, int>(groupIndex, -1); 490 return new Tuple<int, int>(-1, -1);
TypedBinding.cs (2)
108 new(static source => source, propertyName), 220 handlers[i] = new Tuple<Func<TSource, object>, string>(_handlers[i].PartGetter, _handlers[i].PropertyName);
Microsoft.Maui.Controls.Build.Tasks (5)
PerformanceProvider.cs (1)
43 stats.StartTimes.Add(new Tuple<string, long>(reference, Stopwatch.GetTimestamp()));
SetNamescopesAndRegisterNamesVisitor.cs (2)
74 Context.Scopes[node] = new Tuple<VariableDefinition, IList<string>>(namescopeVarDef, namesInNamescope); 83 Context.Scopes[node] = new System.Tuple<VariableDefinition, IList<string>>(namescopeVarDef, namesInNamescope);
SetPropertiesVisitor.cs (1)
1900 templateContext.Scopes[kvp.Key] = new Tuple<VariableDefinition, IList<string>>(varDefScope, kvp.Value.Item2);
TypeReferenceExtensions.cs (1)
281 yield return new Tuple<MethodDefinition, TypeReference>(method, typeRef);
Microsoft.ML.AutoML (4)
Sweepers\SmacSweeper.cs (2)
200configurations.Add(new Tuple<double, ParameterSet>(randomEIs[i], randomConfigs[i])); 245return new Tuple<double, ParameterSet>(currentBestEI, currentBestConfig);
Tuner\SmacTuner.cs (2)
207var randomConfigurations = randomParameters.Select(parameter => new Tuple<double, Parameter>(EvaluateConfigurationsByEI(forest, bestLoss, parameter), parameter)); 250return new Tuple<double, Parameter>(currentBestEI, currentBestConfig);
Microsoft.ML.Core (3)
Utilities\MatrixTransposeOps.cs (3)
93IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 145IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 198IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j)));
Microsoft.ML.Core.Tests (12)
UnitTests\TestHosts.cs (12)
33hosts.Add(new Tuple<IHost, int>(mainHost.Register("1"), 1)); 34hosts.Add(new Tuple<IHost, int>(mainHost.Register("2"), 1)); 35hosts.Add(new Tuple<IHost, int>(mainHost.Register("3"), 1)); 36hosts.Add(new Tuple<IHost, int>(mainHost.Register("4"), 1)); 37hosts.Add(new Tuple<IHost, int>(mainHost.Register("5"), 1)); 48hosts.Add(new Tuple<IHost, int>(newHost, randHostTuple.Item2 + 1)); 96hosts.Add(new Tuple<IHost, int>(mainHost.Register("1"), 1)); 97hosts.Add(new Tuple<IHost, int>(mainHost.Register("2"), 1)); 98hosts.Add(new Tuple<IHost, int>(mainHost.Register("3"), 1)); 99hosts.Add(new Tuple<IHost, int>(mainHost.Register("4"), 1)); 100hosts.Add(new Tuple<IHost, int>(mainHost.Register("5"), 1)); 106hosts.Add(new Tuple<IHost, int>(newHost, tuple.Item2 + 1));
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
976return new Tuple<Var<T>, VariableBinding>(new Var<T> { VarName = varBinding.VariableName }, varBinding);
Microsoft.ML.Sweeper (2)
Algorithms\SmacSweeper.cs (2)
214configurations.Add(new Tuple<double, ParameterSet>(randomEIs[i], randomConfigs[i])); 254return new Tuple<double, ParameterSet>(currentBestEI, currentBestConfig);
Microsoft.ML.TimeSeries (5)
RootCauseAnalyzer.cs (1)
634return new Tuple<double, double>(surprise, ep);
SrCnnEntireAnomalyDetector.cs (4)
769segments.Add(new Tuple<int, int>(start, cursor)); 779segments.Add(new Tuple<int, int>(start, Math.Max(start, cursor))); 913fitValues.Add(new Tuple<int, double>(i, data[i])); 927fitValues.Add(new Tuple<int, double>(i, data[i]));
Microsoft.ML.TorchSharp (1)
AutoFormerV2\Attention.cs (1)
80var offset = new Tuple<int, int>(Math.Abs(points[i][0] - points[j][0]), Math.Abs(points[i][1] - points[j][1]));
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
115{ Architecture.ResnetV2101, new Tuple<int, int>(299,299) }, 116{ Architecture.InceptionV3, new Tuple<int, int>(299,299) }, 117{ Architecture.MobilenetV2, new Tuple<int, int>(224,224) }, 118{ Architecture.ResnetV250, new Tuple<int, int>(299,299) }
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
2030return new Tuple<string, LockFileTargetLibrary>(resolvedPackageAssetPath, library);
Microsoft.NET.HostModel (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable))); 224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key))); 234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
Microsoft.TestPlatform.CrossPlatEngine (5)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (2)
116datacollectorsAttachmentsProcessors.Add(attachmentQualifiedName, new Tuple<string, IDataCollectorAttachmentProcessor>(dataCollectorExtension.Metadata.FriendlyName, dataCollectorAttachmentProcessorInstance)); 127datacollectorsAttachmentsProcessors.Add(typeof(CodeCoverageDataAttachmentsHandler).AssemblyQualifiedName!, new Tuple<string, IDataCollectorAttachmentProcessor>(CoverageFriendlyName, new CodeCoverageDataAttachmentsHandler()));
Client\ProxyExecutionManagerWithDataCollection.cs (1)
231Messages.Add(new Tuple<TestMessageLevel, string?>(level, message));
Execution\RunTestsWithSources.cs (1)
183var executorUriExtensionTuple = new Tuple<Uri, string>(executorUri, kvp.Key);
Execution\RunTestsWithTests.cs (1)
124var executorUriExtensionTuple = new Tuple<Uri, string>(
NuGet.Commands (1)
RestoreCommand\Utility\MSBuildRestoreUtility.cs (1)
683return new Tuple<List<string>, ProjectRestoreReference>(frameworks, reference);
NuGet.Common (1)
Telemetry\TelemetryActivity.cs (1)
72_intervalList.Add(new Tuple<string, TimeSpan>(propertyName, _intervalWatch.Elapsed));
NuGet.Configuration (1)
Settings\Settings.cs (1)
702return new Tuple<string, string>(fileName, directory);
NuGet.DependencyResolver.Core (1)
ResolverUtility.cs (1)
298return new Tuple<LibraryRange, RemoteMatch>(libraryRange, match);
NuGet.Packaging (5)
Licenses\NuGetLicenseExpressionParser.cs (3)
53operandStack.Push(new Tuple<bool, object>(true, token)); 183operandStack.Push(new Tuple<bool, object>(false, withNode)); 198operandStack.Push(new Tuple<bool, object>(false, newExpression));
PackageExtraction\PackageHelper.cs (2)
156return new Tuple<string?, IEnumerable<string>>(runtimePackageDirectory, satelliteFileEntries); 202return new Tuple<string?, IEnumerable<ZipFilePair>>(runtimePackageDirectory, installedSatelliteFiles.ToList());
NuGet.ProjectModel (2)
ProjectLockFile\PackagesLockFileUtilities.cs (2)
193queue.Enqueue(new Tuple<string, string>(spec.Name, projectReference.ProjectUniqueName)); 262queue.Enqueue(new Tuple<string, string>(referenceSpec.Name, reference.ProjectUniqueName));
NuGet.Protocol (46)
HttpSource\HttpHandlerResourceV3Provider.cs (1)
54return Task.FromResult(new Tuple<bool, INuGetResource?>(curResource != null, curResource));
HttpSource\HttpSourceResourceProvider.cs (1)
69return Task.FromResult(new Tuple<bool, INuGetResource?>(curResource != null, curResource));
LegacyFeed\AutoCompleteResourceV2FeedProvider.cs (1)
36return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\DependencyInfoResourceV2FeedProvider.cs (1)
34return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\DownloadResourceV2FeedProvider.cs (1)
34return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\MetadataResourceV2FeedProvider.cs (1)
34return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\ODataServiceDocumentResourceV2Provider.cs (1)
87return new Tuple<bool, INuGetResource>(serviceDocument != null, serviceDocument);
LegacyFeed\PackageMetadataResourceV2FeedProvider.cs (1)
35return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\PackageSearchResourceV2FeedProvider.cs (1)
34return new Tuple<bool, INuGetResource>(resource != null, resource);
LegacyFeed\V2FeedListResourceProvider.cs (1)
42return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\FindLocalPackagesResourcePackagesConfigProvider.cs (1)
34return new Tuple<bool, INuGetResource>(curResource != null, curResource);
LocalRepositories\FindLocalPackagesResourceUnzippedProvider.cs (1)
36return new Tuple<bool, INuGetResource>(curResource != null, curResource);
LocalRepositories\FindLocalPackagesResourceV2Provider.cs (1)
31return new Tuple<bool, INuGetResource>(curResource != null, curResource);
LocalRepositories\FindLocalPackagesResourceV3Provider.cs (1)
29return new Tuple<bool, INuGetResource>(curResource != null, curResource);
LocalRepositories\LocalAutoCompleteResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\LocalDependencyInfoResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\LocalDownloadResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(downloadResource != null, downloadResource);
LocalRepositories\LocalMetadataResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\LocalPackageListResourceProvider.cs (1)
32return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\LocalPackageMetadataResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(resource != null, resource);
LocalRepositories\LocalPackageSearchResourceProvider.cs (1)
31return new Tuple<bool, INuGetResource>(resource != null, resource);
Plugins\PluginManager.cs (1)
275return new Tuple<bool, PluginCreationResult>(pluginCreationResult != null, pluginCreationResult);
Providers\AutoCompleteResourceV3Provider.cs (1)
35return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\DependencyInfoResourceV3Provider.cs (1)
36return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\DownloadResourcePluginProvider.cs (1)
76return new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\DownloadResourceV3Provider.cs (1)
52return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\FeedTypeResourceProvider.cs (1)
65return Task.FromResult(new Tuple<bool, INuGetResource>(curResource != null, curResource));
Providers\MetadataResourceV3Provider.cs (1)
32return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\OwnerDetailsUriResourceV3Provider.cs (1)
38return new Tuple<bool, INuGetResource?>(resource != null, resource);
Providers\PackageDetailsUriResourceV3Provider.cs (1)
32return new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\PackageMetadataResourceV3Provider.cs (1)
42return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\PackageSearchResourceV3Provider.cs (1)
34return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\PackageUpdateResourceV2Provider.cs (1)
39var result = new Tuple<bool, INuGetResource>(packageUpdateResource != null, packageUpdateResource);
Providers\PackageUpdateResourceV3Provider.cs (1)
54var result = new Tuple<bool, INuGetResource>(packageUpdateResource != null, packageUpdateResource);
Providers\PluginResourceProvider.cs (1)
66return new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\RawSearchResourceV3Provider.cs (1)
41return new Tuple<bool, INuGetResource>(curResource != null, curResource);
Providers\ReadmeUriTemplateResourceProvider.cs (1)
35return new Tuple<bool, INuGetResource?>(resource != null, resource);
Providers\RegistrationResourceV3Provider.cs (1)
41return new Tuple<bool, INuGetResource>(regResource != null, regResource);
Providers\ReportAbuseResourceV3Provider.cs (1)
34return new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\RepositorySignatureResourceProvider.cs (1)
47return new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\ServiceIndexResourceV3Provider.cs (1)
105return new Tuple<bool, INuGetResource>(index != null, index);
Providers\SymbolPackageUpdateResourceV3Provider.cs (1)
45var result = new Tuple<bool, INuGetResource>(symbolPackageUpdateResource != null, symbolPackageUpdateResource);
Providers\V3FeedListResourceProvider.cs (1)
47var result = new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\VulnerabilityInfoResourceV3Provider.cs (2)
30return new Tuple<bool, INuGetResource?>(true, resource); 33return new Tuple<bool, INuGetResource?>(false, null);
RemoteRepositories\PluginFindPackageByIdResourceProvider.cs (1)
76return new Tuple<bool, INuGetResource>(resource != null, resource);
PresentationCore (1)
System\Windows\InterOp\D3DImage.cs (1)
756Tuple<bool, uint> parameters = new(isFrontBufferAvailable, version);
PresentationFramework (6)
System\Windows\Controls\Primitives\Selector.cs (1)
2025ranges.Add(new Tuple<int, int>(startRange, endRange-startRange+1));
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12523new Tuple<WeakReference<ItemsControl>,TraceList>(
System\Windows\Documents\TextStore.cs (1)
4998new Tuple<WeakReference<FrameworkElement>,TraceList>(
System\Windows\Documents\WinRTSpellerInterop.cs (3)
332_spellCheckers[culture] = new Tuple<WordsSegmenter, SpellChecker>(wordBreaker, spellChecker); 425return new Tuple<string, string>(null, null); 476return new Tuple<string, string>(ietfLanguageTag, lexiconPrivateCopyPath);
System.Collections.Concurrent (2)
System\Collections\Concurrent\PartitionerStatic.cs (2)
224yield return new Tuple<long, long>(from, to); 278yield return new Tuple<int, int>(from, to);
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
108public override object TypeId => _typeId ??= new Tuple<string, Type>(Method, ValidatorType);
System.ComponentModel.Composition (8)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (1)
49addedExports.Add(new Tuple<ComposablePartDefinition, ExportDefinition>(part, export));
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (2)
707catalogsToAdd.Add(new Tuple<string, AssemblyCatalog>(file, catalog)); 718catalogsToRemove.Add(new Tuple<string, AssemblyCatalog>(file, catalog));
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (2)
120singleExport = new Tuple<ComposablePartDefinition, ExportDefinition>(this, export); 129multipleExports.Add(new Tuple<ComposablePartDefinition, ExportDefinition>(this, export));
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.LifetimeContext.cs (1)
57return new Tuple<T, Action>(exportedValue, disposeAction);
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (2)
234singleExport = new Tuple<ComposablePartDefinition, ExportDefinition>(this, export); 243multipleExports.Add(new Tuple<ComposablePartDefinition, ExportDefinition>(this, export));
System.Composition.Convention (1)
System\Composition\Convention\PartConventionBuilder.cs (1)
652configuredMembers.Add(new Tuple<object, List<Attribute>>(mi, s_onImportsSatisfiedAttributeList));
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
31return new Tuple<T1, T2>(item1, item2);
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\DataContractSet.cs (1)
503genericParameters[i] = new Tuple<Type, object[]?>(paramType, paramParameters);
System.ServiceModel.Primitives (4)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
77new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)), 78new Tuple<string, string> (DiagnosticStrings.MessageTag, XmlEncode(exception.Message)), 79new Tuple<string, string> (DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))), // Stack trace is sometimes null 80new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
System.Text.Json (1)
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (1)
27((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value));
vstest.console (1)
Internal\FilePatternParser.cs (1)
122Tuple<string, string> splitPattern = new(searchDir, pattern);
vstest.console.arm64 (1)
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (1)
122Tuple<string, string> splitPattern = new(searchDir, pattern);
694 references to Tuple
dotnet-svcutil-lib (31)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (9)
86var tuple_0 = await InternalReadContentAsObjectTupleAsync(false).ConfigureAwait(false); 130var tuple_1 = await InternalReadElementContentAsObjectAsync(true).ConfigureAwait(false); 143var tuple_9 = await InternalReadElementContentAsObjectAsync().ConfigureAwait(false); 656var tuple_11 = await InternalReadContentAsObjectTupleAsync(unwrapTypedValue).ConfigureAwait(false); 661private async Task<Tuple<string, object>> InternalReadContentAsObjectTupleAsync(bool unwrapTypedValue) 663Tuple<string, object> tuple; 732private Task<Tuple<XmlSchemaType, object>> InternalReadElementContentAsObjectAsync() 737private async Task<Tuple<XmlSchemaType, object>> InternalReadElementContentAsObjectAsync(bool unwrapTypedValue) 800var tuple_14 = await InternalReadContentAsObjectTupleAsync(unwrapTypedValue).ConfigureAwait(false);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (5)
41private Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> _freeLocals; 85_freeLocals = new Dictionary<Tuple<Type, string>, Queue<LocalBuilder>>(); 238Tuple<Type, string> key = new Tuple<Type, string>(type, name); 2706public void AddToFreeLocals(Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals) 2710Tuple<Type, string> key = new Tuple<Type, string>(item.Value.LocalType, item.Key);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (3)
279IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>() 287foreach (Tuple<string, string> item in exceptionInfo)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (6)
54var continuationState = Tuple.Create(tcs, callback); 57var tuple = obj as Tuple<TaskCompletionSource<TResult>, AsyncCallback>; 101var continuationState = Tuple.Create(tcs, callback); 104var tuple = obj as Tuple<TaskCompletionSource<object>, AsyncCallback>;
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (2)
252var args = (Tuple<long, CancellationTokenSource>)state;
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (3)
63var task = result as Task<Tuple<object, object[]>>; 69var tuple = task.Result; 74private Task<Tuple<object, object[]>> InvokeAsync(object instance, object[] inputs)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (3)
71var invokeTask = result as Task<Tuple<object, object[]>>; 78Tuple<object, object[]> tuple = null; 129private async Task<Tuple<object, object[]>> InvokeAsync(object instance, object[] inputs)
dotnet-svcutil-lib.Tests (1)
TestInit.cs (1)
410foreach (var tuple in generatedWithBaseline)
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
ILCompiler.Compiler (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes) 228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames) 255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages) 263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
ILCompiler.DependencyAnalysisFramework (9)
DgmlWriter.cs (4)
148void IDependencyAnalyzerLogNodeVisitor<DependencyContextType>.VisitCombinedNode(Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>> node) 156private HashSet<Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>> _combinedNodesEdgeVisited = new HashSet<Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>>(); 160var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(nodeDepender, nodeDependerOther);
FirstMarkLogStrategy.cs (2)
62var combinedNodesReported = new HashSet<Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>>(); 80var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(markData.Reason1, markData.Reason2);
FullGraphLogStrategy.cs (2)
133var combinedNodesReported = new HashSet<Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>>(); 152var combinedNode = new Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>>(markData.Reason1, markData.Reason2);
IDependencyAnalyzerLogNodeVisitor.cs (1)
10void VisitCombinedNode(Tuple<DependencyNodeCore<DependencyContextType>, DependencyNodeCore<DependencyContextType>> node);
ILCompiler.ReadyToRun (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes) 228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames) 255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages) 263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
Infrastructure.Common (6)
OSHelper.cs (6)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 51private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>> 136foreach (var pair in _descriptionToOSID) 192foreach (var pair in _runtimeToOSID)
Microsoft.AspNetCore.Components (6)
RenderTree\Renderer.cs (2)
19using CategoryLink = Tuple<ActivityContext, KeyValuePair<string, object?>?>; 43private readonly object _activityLinksStore = new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase);
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (4)
16using CategoryLink = Tuple<ActivityContext, KeyValuePair<string, object?>?>; 29private readonly Dictionary<string, CategoryLink> _store; 34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase) 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
Microsoft.AspNetCore.Components.Endpoints (4)
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (4)
16using CategoryLink = Tuple<ActivityContext, KeyValuePair<string, object?>?>; 29private readonly Dictionary<string, CategoryLink> _store; 34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase) 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
Microsoft.AspNetCore.Components.Server (4)
src\aspnetcore\src\Shared\Components\ComponentsActivityLinkStore.cs (4)
16using CategoryLink = Tuple<ActivityContext, KeyValuePair<string, object?>?>; 29private readonly Dictionary<string, CategoryLink> _store; 34? new Dictionary<string, CategoryLink>(StringComparer.OrdinalIgnoreCase) 35: (Dictionary<string, CategoryLink>)GetActivityLinksStore(instance);
Microsoft.Build (25)
BackEnd\BuildManager\LegacyThreadingData.cs (6)
28private readonly IDictionary<int, Tuple<AutoResetEvent, ManualResetEvent>> _legacyThreadingEventsById = new Dictionary<int, Tuple<AutoResetEvent, ManualResetEvent>>(); 123Tuple<AutoResetEvent, ManualResetEvent> legacyThreadingEvents; 141Tuple<AutoResetEvent, ManualResetEvent> legacyThreadingEvents; 165Tuple<AutoResetEvent, ManualResetEvent> legacyThreadingEvents; 187Tuple<AutoResetEvent, ManualResetEvent> legacyThreadingEvents;
Construction\Solution\SolutionProjectGenerator.cs (2)
105private readonly Tuple<string, string>[] _metaprojectGlobalProperties = 2134foreach (Tuple<string, string> property in _metaprojectGlobalProperties)
Evaluation\Expander.cs (1)
4295Tuple<string, Type> cachedTypeInformation;
Logging\BaseConsoleLogger.cs (1)
79foreach (var parameter in LoggerParametersHelper.ParseParameters(Parameters))
Logging\TerminalLogger\TerminalLogger.cs (1)
474foreach (var parameter in LoggerParametersHelper.ParseParameters(Parameters))
Resources\Constants.cs (14)
122private static ConcurrentDictionary<string, Tuple<string, Type>> s_availableStaticMethods; 145internal static bool TryAdd(string key, Tuple<string, Type> value) 157public static bool TryAdd(string typeFullName, string simpleMethodName, Tuple<string, Type> typeInformation) 165internal static bool TryGetValue(string key, out Tuple<string, Type> value) 173internal static Tuple<string, Type> GetValue(string key) 175Tuple<string, Type> typeInformation; 190internal static Tuple<string, Type> GetTypeInformationFromTypeCache(string typeFullName, string simpleMethodName) 234var availableStaticMethods = new ConcurrentDictionary<string, Tuple<string, Type>>(StringComparer.OrdinalIgnoreCase); 237var environmentType = new Tuple<string, Type>(null, typeof(Environment)); 238var directoryType = new Tuple<string, Type>(null, typeof(Directory)); 239var fileType = new Tuple<string, Type>(null, typeof(File)); 240var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation)); 241var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform)); 318var operatingSystemType = new Tuple<string, Type>(null, typeof(OperatingSystem));
Microsoft.Build.Framework (1)
Logging\LoggerParametersHelper.cs (1)
49public static IEnumerable<Tuple<string, string?>> ParseParameters(string? parametersString)
Microsoft.Build.Tasks.Core (17)
AssemblyDependency\ReferenceTable.cs (5)
36private static readonly Dictionary<string, Tuple<RedistList, string>> s_monikerToHighestRedistList = new Dictionary<string, Tuple<RedistList, string>>(StringComparer.OrdinalIgnoreCase); 2027Tuple<RedistList, string> redistListOtherFramework = GetHighestVersionFullFrameworkForTFM(_targetFrameworkMoniker); 2047private Tuple<RedistList, string> GetHighestVersionFullFrameworkForTFM(FrameworkNameVersioning targetFrameworkMoniker) 2050Tuple<RedistList, string> redistListAndOtherFrameworkName = null;
GetInstalledSDKLocations.cs (2)
145IDictionary<string, Tuple<string, string>> installedSDKs = null; 172foreach (KeyValuePair<string, Tuple<string, string>> sdk in installedSDKs)
ResolveSDKReference.cs (10)
610foreach (Tuple<string, object[]> message in reference.StatusMessages) 626foreach (Tuple<string, object[]> warning in reference.ResolutionWarnings) 635foreach (Tuple<string, object[]> error in reference.ResolutionErrors) 645private void LogErrorOrWarning(Tuple<string, object[]> errorOrWarning) 743ResolutionErrors = new List<Tuple<string, object[]>>(); 744ResolutionWarnings = new List<Tuple<string, object[]>>(); 745StatusMessages = new List<Tuple<string, object[]>>(); 779public List<Tuple<string, object[]>> ResolutionErrors { get; } 784public List<Tuple<string, object[]>> ResolutionWarnings { get; } 789public List<Tuple<string, object[]>> StatusMessages { get; }
Microsoft.Build.Tasks.Git (4)
RepositoryTask.cs (4)
123var cacheKey = GetCacheKey(location.GitDirectory); 150private Tuple<Type, string> GetCacheKey(string repositoryId) 153private bool TryGetCachedRepositoryInstance(Tuple<Type, string> cacheKey, bool requireCached, [NotNullWhen(true)]out GitRepository? repository) 177private void CacheRepositoryInstance(Tuple<Type, string> cacheKey, GitRepository? repository)
Microsoft.Build.Utilities.Core (4)
ToolLocationHelper.cs (4)
423public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string targetPlatformIdentifier, Version targetPlatformVersion) 435public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion) 448public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string[] multiPlatformDiskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion) 450var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
Microsoft.CodeAnalysis.CodeStyle (4)
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (2)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 51var lastParsed = Volatile.Read(ref _lastParsed);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
Microsoft.CodeAnalysis.CSharp (18)
DocumentationComments\PEDocumentationCommentUtils.cs (1)
24ref Tuple<CultureInfo, string> lazyDocComment)
Symbols\Metadata\PE\PEEventSymbol.cs (1)
35private Tuple<CultureInfo, string>? _lazyDocComment;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
144private Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
322public Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
81private Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
203public Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Source\SourceAssemblySymbol.cs (7)
2133ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null; 2197private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap; 2275ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap) 2309new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null); 2316Tuple<Location, string> locationAndValue = null; 2329ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null; 2336keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>();
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (5)
24private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> _lazyDeclaredBases; 255internal Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> GetDeclaredBases(ConsList<TypeSymbol> basesBeingResolved) 280private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeDeclaredBases(ConsList<TypeSymbol> basesBeingResolved, BindingDiagnosticBag diagnostics) 300Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> one = MakeOneDeclaredBases(newBasesBeingResolved, decl, diagnostics); 493private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeOneDeclaredBases(ConsList<TypeSymbol> newBasesBeingResolved, SingleTypeDeclaration decl, BindingDiagnosticBag diagnostics)
Microsoft.CodeAnalysis.Features (2)
src\roslyn\src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (2)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 51var lastParsed = Volatile.Read(ref _lastParsed);
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\HtmlMarkupParser.cs (3)
186public MarkupBlockSyntax ParseRazorBlock(Tuple<string, string> nestingSequences, bool caseSensitive) 2110private void NestingBlock(in SyntaxListBuilder<RazorSyntaxNode> builder, Tuple<string, string> nestingSequences) 2152private int ProcessTextToken(in SyntaxListBuilder<RazorSyntaxNode> builder, Tuple<string, string> nestingSequences, int currentNesting)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
38Private _lazyDocComment As Tuple(Of CultureInfo, String)
Microsoft.CodeAnalysis.Workspaces (6)
Rename\ConflictEngine\RenamedSpansTracker.cs (4)
189foreach (var annotationAndNode in nodeAnnotations) 198foreach (var annotationAndToken in annotationAndTokens2) 212foreach (var annotationAndToken in annotationAndTokens) 220foreach (var annotationAndTrivia in annotationAndTrivias)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
Microsoft.Diagnostics.NETCore.Client (3)
HandleableCollection.cs (3)
27private readonly List<Tuple<TaskCompletionSource<T>, Handler>> _handlers = new(); 84foreach (Tuple<TaskCompletionSource<T>, Handler> tuple in _handlers) 108Tuple<TaskCompletionSource<T>, Handler> handler = _handlers[i];
Microsoft.DotNet.Build.Tasks.Packaging (2)
NugetPropertyStringProvider.cs (2)
22var property = GetKeyValuePair(propertyString); 41private static Tuple<string, string> GetKeyValuePair(string propertyString)
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
494var result = (Tuple<MyFunctionTypeWithOneArg, MyArgumentType>?)await func.InvokeAsync(new() { Services = sp });
Microsoft.Extensions.Caching.Hybrid.Tests (3)
SerializerTests.cs (3)
77var obj = RoundTrip(Tuple.Create(42, "abc"), """{"Item1":42,"Item2":"abc"}"""u8, expectedSerializer, addSerializers); 125List<Tuple<int, string>> source = [Tuple.Create(1, "a"), Tuple.Create(2, "b")]; 133Tuple<int, string>[] source = [Tuple.Create(1, "a"), Tuple.Create(2, "b")];
Microsoft.Maui.Controls (15)
Brush\BrushTypeConverter.cs (2)
228 var coordinates = GetCoordinatesByAngle(angle); 271 Tuple<Point, Point> GetCoordinatesByAngle(double angle)
Internals\CellExtensions.cs (1)
41 public static Tuple<int, int> GetPath(this Cell cell)
ITemplatedItemsList.cs (2)
28 Tuple<int, int> GetGroupAndIndexOfItem(object item); 29 Tuple<int, int> GetGroupAndIndexOfItem(object group, object item);
TableView\TableView.cs (4)
175 static readonly BindableProperty PathProperty = BindableProperty.Create("Path", typeof(Tuple<int, int>), typeof(Cell), null); 239 internal static Tuple<int, int> GetPath(Cell item) 244 return (Tuple<int, int>)item.GetValue(PathProperty); 262 static void SetPath(Cell item, Tuple<int, int> index)
TemplatedItemsList.cs (2)
442 public Tuple<int, int> GetGroupAndIndexOfItem(object item) 465 public Tuple<int, int> GetGroupAndIndexOfItem(object group, object item)
TypedBinding.cs (4)
106 handlers: new Tuple<Func<TSource, object>, string>[] 126 public TypedBinding(Func<TSource, (TProperty value, bool success)> getter, Action<TSource, TProperty> setter, Tuple<Func<TSource, object>, string>[] handlers) 213 Tuple<Func<TSource, object>, string>[] handlers = _handlers == null ? null : new Tuple<Func<TSource, object>, string>[_handlers.Length];
Microsoft.Maui.Controls.Build.Tasks (14)
ILContext.cs (2)
18 Scopes = new Dictionary<INode, Tuple<VariableDefinition, IList<string>>>(); 32 public Dictionary<INode, Tuple<VariableDefinition, IList<string>>> Scopes { get; private set; }
NodeILExtensions.cs (1)
585 if (context.Scopes.TryGetValue(node, out var scope))
PerformanceProvider.cs (2)
15 public readonly List<Tuple<string, long>> StartTimes = new List<Tuple<string, long>>();
SetPropertiesVisitor.cs (4)
158 var adderTuple = elementType.GetMethods(Context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, Module).First(); 197 var adderTuple = propertyType.GetMethods(Context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, Module).FirstOrDefault() ?? 1693 var adderTuple = propertyType.GetMethods(context.Cache, md => md.Name == "Add" 1757 var adderTuple = propertyType.GetMethods(context.Cache, md => md.Name == "Add" && md.Parameters.Count == 1, module).FirstOrDefault();
TypeReferenceExtensions.cs (5)
268 public static IEnumerable<Tuple<MethodDefinition, TypeReference>> GetMethods(this TypeReference typeRef, XamlCache cache, 274 public static IEnumerable<Tuple<MethodDefinition, TypeReference>> GetMethods(this TypeReference typeRef, XamlCache cache, 292 foreach (var tuple in face.InterfaceType.GetMethods(cache, predicate, module)) 300 foreach (var tuple in baseType.GetMethods(cache, predicate, module)) 321 foreach (var op in implicitOperators)
Microsoft.ML.AutoML (8)
Sweepers\SmacSweeper.cs (5)
185HashSet<Tuple<double, ParameterSet>> configurations = new HashSet<Tuple<double, ParameterSet>>(); 190Tuple<double, ParameterSet> bestChildKvp = LocalSearch(c, forest, bestVal, _args.Epsilon, bestRun.IsMetricMaximizing); 202IOrderedEnumerable<Tuple<double, ParameterSet>> bestConfigurations = configurations.OrderByDescending(x => x.Item1); 224private Tuple<double, ParameterSet> LocalSearch(ParameterSet parent, FastForestRegressionModelParameters forest, double bestVal, double epsilon, bool isMetricMaximizing)
Tuner\SmacTuner.cs (3)
196var configurations = new HashSet<Tuple<double, Parameter>>(); 201var bestChildKvp = LocalSearch(c, forest, bestLoss); 229private Tuple<double, Parameter> LocalSearch(Parameter startParameter, FastForestRegressionModelParameters forest, double bestLoss)
Microsoft.ML.Core (7)
Data\ProgressReporter.cs (4)
31private Tuple<ProgressHeader, Action<IProgressEntry>> _headerAndAction; 128var cache = _headerAndAction; 218private Tuple<ProgressHeader, Action<IProgressEntry>> _headerAndAction; 228var cache = _headerAndAction;
Utilities\MatrixTransposeOps.cs (3)
93IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 145IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j))); 198IEnumerable<Tuple<int, int>> ijenum = ienum.SelectMany(i => jenum.Select(j => new Tuple<int, int>(i, j)));
Microsoft.ML.Core.Tests (5)
UnitTests\TestHosts.cs (5)
32var hosts = new BlockingCollection<Tuple<IHost, int>>(); 46var randHostTuple = hosts.ElementAt(rand.Next(hosts.Count - 1)); 95var hosts = new BlockingCollection<Tuple<IHost, int>>(); 104var tuple = hosts.ElementAt(i); 115foreach (var host in hosts)
Microsoft.ML.Data (1)
EntryPoints\EntryPointNode.cs (1)
956public Tuple<Var<T>, VariableBinding> AddNewVariable<T>(string uniqueName, T value)
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.Sweeper (6)
Algorithms\SmacSweeper.cs (6)
199HashSet<Tuple<double, ParameterSet>> configurations = new HashSet<Tuple<double, ParameterSet>>(); 204Tuple<double, ParameterSet> bestChildKvp = LocalSearch(c, forest, bestVal, _args.Epsilon); 217IOrderedEnumerable<Tuple<double, ParameterSet>> bestConfigurations = configurations.OrderByDescending(x => x.Item1); 219foreach (Tuple<double, ParameterSet> t in bestConfigurations.Take(numOfCandidates)) 233private Tuple<double, ParameterSet> LocalSearch(ParameterSet parent, FastForestRegressionModelParameters forest, double bestVal, double epsilon)
Microsoft.ML.TimeSeries (8)
RootCauseAnalyzer.cs (3)
363Tuple<double, double> scores = GetSurpriseAndExplanatoryScore(rootCausePoint, anomalyPoint); 387Tuple<double, double> scores = GetSurpriseAndExplanatoryScore(rootCausePoint, anomalyPoint); 628private Tuple<double, double> GetSurpriseAndExplanatoryScore(TimeSeriesPoint rootCausePoint, TimeSeriesPoint anomalyPoint)
SrCnnEntireAnomalyDetector.cs (5)
753List<Tuple<int, int>> segments = new List<Tuple<int, int>>(); 908List<Tuple<int, double>> fitValues = new List<Tuple<int, double>>(); 939private double CalculateInterpolate(List<Tuple<int, double>> values, int idx)
Microsoft.ML.TorchSharp (11)
AutoFormerV2\Attention.cs (2)
73var attentionOffsets = new Dictionary<Tuple<int, int>, int>(); 80var offset = new Tuple<int, int>(Math.Abs(points[i][0] - points[j][0]), Math.Abs(points[i][1] - points[j][1]));
AutoFormerV2\ObjectDetectionMetrics.cs (9)
99Dictionary<string, List<Tuple<float, float>>> iouDic = new(); 103iouDic.Add(label, new List<Tuple<float, float>>()); 118private static float AP50(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes, float threshold = 0.5f) 136private static float AP50_95(Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 179private static void ImageIoU(List<ObjectLabel> objectLabel, List<ObjectLabel> annotation, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 230private static void GenerateIOUDic(List<List<ObjectLabel>> annotations, List<List<ObjectLabel>> objectLabelList, Dictionary<string, List<Tuple<float, float>>> iouDic, Dictionary<string, int> groundTruthBoxes) 247private static float LabelAP(List<Tuple<float, float>> detectionList, int groundTruthBoxesNum, float threshold = 0.5f) 260Stack<Tuple<float, float>> prStack = new(); // precision and recall * groundTruthBoxesNum (= true positive) 277Tuple<float, float> pr = prStack.Pop();
Microsoft.ML.Vision (4)
ImageClassificationTrainer.cs (4)
112internal static IReadOnlyDictionary<Architecture, Tuple<int, int>> ImagePreprocessingSize = 113new Dictionary<Architecture, Tuple<int, int>> 613var imageSize = ImagePreprocessingSize[_options.Arch]; 1159var imageSize = ImagePreprocessingSize[_options.Arch];
Microsoft.NET.Build.Tasks (6)
FileGroup.cs (3)
10using PathAndPropertiesTuple = Tuple<string, IDictionary<string, string>>; 58public static IEnumerable<PathAndPropertiesTuple> GetFilePathAndProperties( 89private static IEnumerable<PathAndPropertiesTuple> SelectPath<T>(IList<T> fileItemList)
ResolvePackageAssets.cs (2)
1397Tuple<string, LockFileTargetLibrary> resolvedPackageAssetPathAndLibrary = FindApphostInRuntimeTarget(apphostName, runtimeTarget); 2010private Tuple<string, LockFileTargetLibrary> FindApphostInRuntimeTarget(string apphostName, LockFileTarget runtimeTarget)
ResolvePackageDependencies.cs (1)
370foreach (var entry in filePathList)
Microsoft.NET.HostModel (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>(); 200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>(); 201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>(); 213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes) 228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames) 255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages) 263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
Microsoft.TestPlatform.CrossPlatEngine (29)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (2)
28IDictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>> datacollectorsAttachmentsProcessors = new Dictionary<string, Tuple<string, IDataCollectorAttachmentProcessor>>();
Client\ProxyExecutionManagerWithDataCollection.cs (3)
137foreach (var message in DataCollectionRunEventsHandler.Messages) 214Messages = new List<Tuple<TestMessageLevel, string?>>(); 221public List<Tuple<TestMessageLevel, string?>> Messages { get; private set; }
Client\ProxyOperationManagerWithDataCollection.cs (1)
116foreach (var message in DataCollectionRunEventsHandler.Messages)
Execution\BaseRunTests.cs (7)
276protected abstract IEnumerable<Tuple<Uri, string>>? GetExecutorUriExtensionMap( 282Tuple<Uri, string> executorUriExtensionTuple, 298Tuple<Uri, string> executorUriExtensionTuple, 350private bool RunTestInternalWithExecutors(IEnumerable<Tuple<Uri, string>> executorUriExtensionMap, long totalTests) 353var executorUriExtensionMapList = executorUriExtensionMap as IList<Tuple<Uri, string>> ?? executorUriExtensionMap.ToList(); 358foreach (var executorUriExtensionTuple in executorUriExtensionMapList) 428foreach (var executorUriExtensionTuple in executorUriExtensionMapList)
Execution\RunTestsWithSources.cs (8)
31private Dictionary<Tuple<Uri, string>, IEnumerable<string>>? _executorUriVsSourceList; 51internal RunTestsWithSources(IRequestData requestData, Dictionary<string, IEnumerable<string>> adapterSourceMap, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, IEnumerable<string>>? executorUriVsSourceList) 96protected override IEnumerable<Tuple<Uri, string>> GetExecutorUriExtensionMap(IFrameworkHandle testExecutorFrameworkHandle, RunContext runContext) 110Tuple<Uri, string> executorUriExtensionTuple, 120Tuple<Uri, string> executorUriExtensionTuple, 134private Dictionary<Tuple<Uri, string>, IEnumerable<string>> GetExecutorVsSourcesList(IMessageLogger logger) 136var result = new Dictionary<Tuple<Uri, string>, IEnumerable<string>>(); 183var executorUriExtensionTuple = new Tuple<Uri, string>(executorUri, kvp.Key);
Execution\RunTestsWithTests.cs (8)
25private Dictionary<Tuple<Uri, string>, List<TestCase>>? _executorUriVsTestList; 43internal RunTestsWithTests(IRequestData requestData, IEnumerable<TestCase> testCases, string? package, string? runSettings, TestExecutionContext testExecutionContext, ITestCaseEventsHandler? testCaseEventsHandler, IInternalTestRunEventsHandler testRunEventsHandler, Dictionary<Tuple<Uri, string>, List<TestCase>>? executorUriVsTestList) 56protected override IEnumerable<Tuple<Uri, string>> GetExecutorUriExtensionMap(IFrameworkHandle testExecutorFrameworkHandle, RunContext runContext) 68Tuple<Uri, string> executorUri, 78Tuple<Uri, string> executorUri, 117private static Dictionary<Tuple<Uri, string>, List<TestCase>> GetExecutorVsTestCaseList(IEnumerable<TestCase> tests) 119var result = new Dictionary<Tuple<Uri, string>, List<TestCase>>(); 124var executorUriExtensionTuple = new Tuple<Uri, string>(
Microsoft.VisualStudio.TestPlatform.Common (2)
Utilities\MetadataReaderHelper.cs (2)
66List<Tuple<int, Type>>? extensions = null; 164extensions ??= new List<Tuple<int, Type>>();
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1200[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,>))]
netstandard (1)
netstandard.cs (1)
2201[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,>))]
NuGet.Build.Tasks (2)
BuildTasksUtility.cs (2)
317/// <returns>A <see cref="Tuple{ProjectStyle, Boolean}"/> containing the project style and a value indicating if the project is using a style that is compatible with PackageReference. 357/// <returns>A <see cref="Tuple{ProjectStyle, Boolean}"/> containing the project style and a value indicating if the project is using a style that is compatible with PackageReference.
NuGet.Commands (10)
RestoreCommand\DownloadDependencyResolutionResult.cs (4)
24public IList<Tuple<LibraryRange, RemoteMatch>> Dependencies { get; } 37private DownloadDependencyResolutionResult(NuGetFramework framework, IList<Tuple<LibraryRange, RemoteMatch>> dependencies, ISet<RemoteMatch> install, ISet<LibraryRange> unresolved) 45public static DownloadDependencyResolutionResult Create(NuGetFramework framework, IList<Tuple<LibraryRange, RemoteMatch>> dependencies, IList<IRemoteDependencyProvider> remoteDependencyProviders) 50foreach (var dependency in dependencies)
RestoreCommand\ProjectRestoreCommand.cs (3)
240return DownloadDependencyResolutionResult.Create(targetFrameworkInformation.FrameworkName, Array.Empty<Tuple<LibraryRange, RemoteMatch>>(), context.RemoteLibraryProviders); 243List<Task<Tuple<LibraryRange, RemoteMatch>>> packageDownloadTasks = new(capacity: targetFrameworkInformation.DownloadDependencies.Length); 250Tuple<LibraryRange, RemoteMatch>[] packageDownloadMatches = await Task.WhenAll(packageDownloadTasks);
RestoreCommand\Utility\MSBuildRestoreUtility.cs (2)
638foreach (var frameworkPair in flatReferences) 671private static Tuple<List<string>, ProjectRestoreReference> GetProjectRestoreReference(IMSBuildItem item, bool crossTargeting)
RestoreCommand\Utility\PackageSpecFactory.cs (1)
350/// <returns>A <see cref="Tuple{ProjectStyle, Boolean}"/> containing the project style and a value indicating if the project is using a style that is compatible with PackageReference.
NuGet.Common (3)
Telemetry\TelemetryActivity.cs (3)
18private readonly List<Tuple<string, TimeSpan>> _intervalList; 55_intervalList = new List<Tuple<string, TimeSpan>>(); 135foreach (var interval in _intervalList)
NuGet.Configuration (2)
Settings\Settings.cs (2)
680public static Tuple<string, string> GetFileNameAndItsRoot(string root, string settingsPath) 801var tuple = GetFileNameAndItsRoot(settingsRoot, settingsPath);
NuGet.Credentials (1)
SecurePluginCredentialProvider.cs (1)
94Tuple<bool, PluginCreationResult> result = await _pluginManager.TryGetSourceAgnosticPluginAsync(_discoveredPlugin, OperationClaim.Authentication, cancellationToken);
NuGet.DependencyResolver.Core (4)
Remote\RemoteWalkContext.cs (2)
27ResolvePackageLibraryMatchCache = new TaskResultCache<LibraryRange, Tuple<LibraryRange, RemoteMatch>>(); 49internal TaskResultCache<LibraryRange, Tuple<LibraryRange, RemoteMatch>> ResolvePackageLibraryMatchCache { get; }
ResolverUtility.cs (2)
273public static Task<Tuple<LibraryRange, RemoteMatch>> FindPackageLibraryMatchCachedAsync( 284private static async Task<Tuple<LibraryRange, RemoteMatch>> ResolvePackageLibraryMatchAsync(LibraryRange libraryRange, RemoteWalkContext remoteWalkContext, CancellationToken cancellationToken)
NuGet.PackageManagement (1)
Projects\FolderNuGetProject.cs (1)
586var installedSatelliteFilesPair = await PackageHelper.GetInstalledSatelliteFilesAsync(
NuGet.Packaging (11)
Licenses\NuGetLicenseExpressionParser.cs (7)
37var operandStack = new Stack<Tuple<bool, object>>(); 136var value = operandStack.Pop(); 165private static void ProcessOperators(Stack<LicenseExpressionToken> operatorStack, Stack<Tuple<bool, object>> operandStack) 168var rightOperand = PopIfNotEmpty(operandStack); 169var leftOperand = PopIfNotEmpty(operandStack); 202private static Tuple<bool, object> PopIfNotEmpty(Stack<Tuple<bool, object>> operandStack)
PackageExtraction\PackageHelper.cs (3)
131public static async Task<Tuple<string?, IEnumerable<string>>> GetSatelliteFilesAsync( 182public static async Task<Tuple<string?, IEnumerable<ZipFilePair>>> GetInstalledSatelliteFilesAsync( 190var result = await GetSatelliteFilesAsync(packageReader, packagePathResolver, cancellationToken);
PackageExtractor.cs (1)
1006var result = await PackageHelper.GetSatelliteFilesAsync(packageReader, packagePathResolver, token);
NuGet.ProjectModel (2)
ProjectLockFile\PackagesLockFileUtilities.cs (2)
185var queue = new Queue<Tuple<string, string>>(); 197var projectNames = queue.Dequeue();
NuGet.Protocol (60)
HttpSource\HttpHandlerResourceV3Provider.cs (1)
43public override Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token)
HttpSource\HttpSourceResourceProvider.cs (1)
39public override Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token)
INuGetResourceProvider.cs (1)
33Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token);
LegacyFeed\AutoCompleteResourceV2FeedProvider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\DependencyInfoResourceV2FeedProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\DownloadResourceV2FeedProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\MetadataResourceV2FeedProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\ODataServiceDocumentResourceV2Provider.cs (1)
35public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\PackageMetadataResourceV2FeedProvider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LegacyFeed\PackageSearchResourceV2FeedProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source,
LegacyFeed\V2FeedListResourceProvider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source,
LocalRepositories\FindLocalPackagesResourcePackagesConfigProvider.cs (1)
24public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\FindLocalPackagesResourceUnzippedProvider.cs (1)
26public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\FindLocalPackagesResourceV2Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\FindLocalPackagesResourceV3Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalAutoCompleteResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalDependencyInfoResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalDownloadResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalMetadataResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalPackageListResourceProvider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source,
LocalRepositories\LocalPackageMetadataResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalPackageSearchResourceProvider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalV2FindPackageByIdResourceProvider.cs (1)
25public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
LocalRepositories\LocalV3FindPackageByIdResourceProvider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Plugins\IPluginManager.cs (1)
42Task<Tuple<bool, PluginCreationResult>> TryGetSourceAgnosticPluginAsync(PluginDiscoveryResult pluginDiscoveryResult, OperationClaim requestedOperationClaim, CancellationToken cancellationToken);
Plugins\PluginManager.cs (3)
133var pluginCreationResult = await TryCreatePluginAsync( 160public Task<Tuple<bool, PluginCreationResult>> TryGetSourceAgnosticPluginAsync(PluginDiscoveryResult pluginDiscoveryResult, OperationClaim requestedOperationClaim, CancellationToken cancellationToken) 190private async Task<Tuple<bool, PluginCreationResult>> TryCreatePluginAsync(
Providers\AutoCompleteResourceV3Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\DependencyInfoResourceV3Provider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\DownloadResourcePluginProvider.cs (1)
39public override async Task<Tuple<bool, INuGetResource>> TryCreate(
Providers\DownloadResourceV3Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\FeedTypeResourceProvider.cs (1)
30public override Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\MetadataResourceV3Provider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\OwnerDetailsUriResourceV3Provider.cs (1)
24public override async Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token)
Providers\PackageDetailsUriResourceV3Provider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\PackageMetadataResourceV3Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\PackageSearchResourceV3Provider.cs (1)
20public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\PackageUpdateResourceV2Provider.cs (2)
22public async override Task<Tuple<bool, INuGetResource>> TryCreate( 39var result = new Tuple<bool, INuGetResource>(packageUpdateResource != null, packageUpdateResource);
Providers\PackageUpdateResourceV3Provider.cs (2)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate( 54var result = new Tuple<bool, INuGetResource>(packageUpdateResource != null, packageUpdateResource);
Providers\PluginResourceProvider.cs (1)
43public override async Task<Tuple<bool, INuGetResource>> TryCreate(
Providers\RawSearchResourceV3Provider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\ReadmeUriTemplateResourceProvider.cs (1)
23public override async Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token)
Providers\RegistrationResourceV3Provider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\ReportAbuseResourceV3Provider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\RepositorySignatureResourceProvider.cs (1)
33public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\ServiceIndexResourceV3Provider.cs (1)
54public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token)
Providers\SymbolPackageUpdateResourceV3Provider.cs (2)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository source, CancellationToken token) 45var result = new Tuple<bool, INuGetResource>(symbolPackageUpdateResource != null, symbolPackageUpdateResource);
Providers\V3FeedListResourceProvider.cs (2)
24public override async Task<Tuple<bool, INuGetResource>> TryCreate( 47var result = new Tuple<bool, INuGetResource>(resource != null, resource);
Providers\VulnerabilityInfoResourceV3Provider.cs (1)
23public override async Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token)
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResourceProvider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository sourceRepository, CancellationToken token)
RemoteRepositories\PluginFindPackageByIdResourceProvider.cs (1)
39public override async Task<Tuple<bool, INuGetResource>> TryCreate(
RemoteRepositories\RemoteV2FindPackageByIdResourceProvider.cs (1)
23public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository sourceRepository, CancellationToken token)
RemoteRepositories\RemoteV3FindPackageByIdResourceProvider.cs (1)
22public override async Task<Tuple<bool, INuGetResource>> TryCreate(SourceRepository sourceRepository, CancellationToken token)
ResourceProvider.cs (1)
89public abstract Task<Tuple<bool, INuGetResource?>> TryCreate(SourceRepository source, CancellationToken token);
SourceRepository.cs (1)
161var result = await provider.TryCreate(this, token);
PresentationCore (15)
MS\Internal\DpiUtil\DpiUtil+HwndDpiInfo.cs (1)
18/// <remarks>This is a <see cref="Tuple{T1, T2}"/> because it is primarily used as a <see cref="Dictionary"/> key
System\Windows\EventHelper.cs (6)
23public static void AddHandler<T>(ref Tuple<T, Delegate[]> field, T value) where T : Delegate 27Tuple<T, Delegate[]> oldTuple = field; 29Tuple<T, Delegate[]> newTuple = combinedDelegate != null ? Tuple.Create(combinedDelegate, combinedDelegate.GetInvocationList()) : null; 40public static void RemoveHandler<T>(ref Tuple<T, Delegate[]> field, T value) where T : Delegate 44Tuple<T, Delegate[]> oldTuple = field; 46Tuple<T, Delegate[]> newTuple = delegateWithRemoval != null ? Tuple.Create(delegateWithRemoval, delegateWithRemoval.GetInvocationList()) : null;
System\Windows\Input\InputManager.cs (5)
881private void RaiseProcessInputEventHandlers(Tuple<ProcessInputEventHandler, Delegate[]> postProcessInput, ProcessInputEventArgs processInputEventArgs) 923private Tuple<PreProcessInputEventHandler, Delegate[]> _preProcessInput; 924private Tuple<NotifyInputEventHandler, Delegate[]> _preNotifyInput; 925private Tuple<NotifyInputEventHandler, Delegate[]> _postNotifyInput; 926private Tuple<ProcessInputEventHandler, Delegate[]> _postProcessInput;
System\Windows\InterOp\D3DImage.cs (2)
736(bool isFrontBufferAvailable, uint version) = (Tuple<bool, uint>)isAvailableVersionPair; 756Tuple<bool, uint> parameters = new(isFrontBufferAvailable, version);
System\Windows\InterOp\HwndSource.cs (1)
2788private Tuple<HwndSourceHook, Delegate[]> _hooks;
PresentationFramework (18)
System\Windows\Controls\DataGrid.cs (4)
5324List<Tuple<int, int>> ranges = null; 5330ranges = new List<Tuple<int, int>>(); 7597List<Tuple<int, int>> ranges = new List<Tuple<int, int>>();
System\Windows\Controls\Primitives\Selector.cs (1)
1957internal void LocateSelectedItems(List<Tuple<int,int>> ranges = null, bool deselectMissingItems=false)
System\Windows\Controls\VirtualizedCellInfoCollection.cs (3)
943internal void OnItemsCollectionChanged(NotifyCollectionChangedEventArgs e, List<Tuple<int,int>> ranges) 1430internal void RestoreOnlyFullRows(List<Tuple<int,int>> ranges) 1437foreach (Tuple<int,int> range in ranges)
System\Windows\Controls\VirtualizingStackPanel.cs (2)
12464private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12465= new List<Tuple<WeakReference<ItemsControl>,TraceList>>();
System\Windows\Documents\TextStore.cs (2)
4939private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4940= new List<Tuple<WeakReference<FrameworkElement>,TraceList>>();
System\Windows\Documents\WinRTSpellerInterop.cs (6)
51_spellCheckers = new Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>>(); 204var data = (Tuple<string, string>)token; 421private Tuple<string, string> LoadDictionaryImpl(string lexiconFilePath) 680foreach (Tuple<WordsSegmenter, SpellChecker> item in _spellCheckers.Values) 821private Dictionary<CultureInfo, Tuple<WordsSegmenter, SpellChecker>> _spellCheckers;
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (2)
17private static Tuple<LineFormattingOptions, (Whitespace[] spaces, Whitespace[,] whitespaces)>? s_lastOptionAndWhitespace; 38var lastOptionAndWhitespace = s_lastOptionAndWhitespace;
System.Collections.Concurrent (6)
System\Collections\Concurrent\PartitionerStatic.cs (6)
182public static OrderablePartitioner<Tuple<long, long>> Create(long fromInclusive, long toExclusive) 200public static OrderablePartitioner<Tuple<long, long>> Create(long fromInclusive, long toExclusive, long rangeSize) 208private static IEnumerable<Tuple<long, long>> CreateRanges(long fromInclusive, long toExclusive, long rangeSize) 236public static OrderablePartitioner<Tuple<int, int>> Create(int fromInclusive, int toExclusive) 254public static OrderablePartitioner<Tuple<int, int>> Create(int fromInclusive, int toExclusive, int rangeSize) 262private static IEnumerable<Tuple<int, int>> CreateRanges(int fromInclusive, int toExclusive, int rangeSize)
System.ComponentModel.Annotations (1)
System\ComponentModel\DataAnnotations\CustomValidationAttribute.cs (1)
67private Tuple<string, Type>? _typeId;
System.ComponentModel.Composition (63)
System\ComponentModel\Composition\ExportFactoryOfT.cs (3)
8private readonly Func<Tuple<T, Action>> _exportLifetimeContextCreator; 10public ExportFactory(Func<Tuple<T, Action>> exportLifetimeContextCreator) 19Tuple<T, Action> untypedLifetimeContext = _exportLifetimeContextCreator.Invoke();
System\ComponentModel\Composition\ExportFactoryOfTTMetadata.cs (1)
10public ExportFactory(Func<Tuple<T, Action>> exportLifetimeContextCreator, TMetadata metadata)
System\ComponentModel\Composition\Hosting\AggregateCatalog.cs (5)
108/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 119public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition) 127IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? result = null; 128List<Tuple<ComposablePartDefinition, ExportDefinition>>? aggregateResult = null; 145aggregateResult = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(result);
System\ComponentModel\Composition\Hosting\ApplicationCatalog.cs (2)
144/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 155public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition)
System\ComponentModel\Composition\Hosting\AssemblyCatalog.cs (2)
407/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 425public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition)
System\ComponentModel\Composition\Hosting\CatalogExportProvider.CatalogChangeProxy.cs (2)
33public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports( 42var addedExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\Hosting\CatalogExportProvider.cs (1)
331foreach (var partDefinitionAndExportDefinition in currentCatalog.GetExports(definition))
System\ComponentModel\Composition\Hosting\CatalogExportProvider.ScopeManager.cs (1)
38foreach (var partDefinitionAndExportDefinition in childCatalog.GetExportsFromPublicSurface(queryImport))
System\ComponentModel\Composition\Hosting\CompositionScopeDefinition.cs (5)
161/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 179public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition) 187internal IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExportsFromPublicSurface(ImportDefinition definition) 191var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(); 197foreach (var export in GetExports(definition))
System\ComponentModel\Composition\Hosting\DirectoryCatalog.cs (10)
511/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 522public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition) 574List<Tuple<string, AssemblyCatalog>> catalogsToAdd; 575List<Tuple<string, AssemblyCatalog>> catalogsToRemove; 623foreach (var catalogToAdd in catalogsToAdd) 629foreach (var catalogToRemove in catalogsToRemove) 694out List<Tuple<string, AssemblyCatalog>> catalogsToAdd, 695out List<Tuple<string, AssemblyCatalog>> catalogsToRemove) 697catalogsToAdd = new List<Tuple<string, AssemblyCatalog>>(); 698catalogsToRemove = new List<Tuple<string, AssemblyCatalog>>();
System\ComponentModel\Composition\Hosting\FilteredCatalog.cs (4)
131/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 149public override IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition) 154var exports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(); 155foreach (var export in _innerCatalog.GetExports(definition))
System\ComponentModel\Composition\Primitives\ComposablePartCatalog.cs (7)
27internal static readonly List<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExportsList = new List<Tuple<ComposablePartDefinition, ExportDefinition>>(); 79/// An <see cref="IEnumerable{T}"/> of <see cref="Tuple{T1, T2}"/> containing the 97public virtual IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> GetExports(ImportDefinition definition) 103List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null; 109if (part.TryGetExports(definition, out Tuple<ComposablePartDefinition, ExportDefinition>? singleMatch, out IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleMatches))
System\ComponentModel\Composition\Primitives\ComposablePartDefinition.cs (7)
16internal static readonly IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>> _EmptyExports = Enumerable.Empty<Tuple<ComposablePartDefinition, ExportDefinition>>(); 105internal virtual bool TryGetExports(ImportDefinition definition, out Tuple<ComposablePartDefinition, ExportDefinition>? singleMatch, out IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleMatches) 110List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null; 111Tuple<ComposablePartDefinition, ExportDefinition>? singleExport = null; 126multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.cs (2)
49Func<Tuple<T, Action>> exportLifetimeContextCreator = () => LifetimeContext.GetExportLifetimeContextFromExport<T>(export); 62Func<Tuple<T, Action>> exportLifetimeContextCreator = () => LifetimeContext.GetExportLifetimeContextFromExport<T>(export);
System\ComponentModel\Composition\ReflectionModel\ExportfactoryCreator.LifetimeContext.cs (1)
14public static Tuple<T, Action> GetExportLifetimeContextFromExport<T>(Export export)
System\ComponentModel\Composition\ReflectionModel\ReflectionComposablePartDefinition.cs (10)
141internal override bool TryGetExports(ImportDefinition definition, out Tuple<ComposablePartDefinition, ExportDefinition>? singleMatch, out IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleMatches) 148List<Tuple<ComposablePartDefinition, ExportDefinition>>? exports = null; 192if (candidatePart.TryGetExports(definition, out Tuple<ComposablePartDefinition, ExportDefinition>? candidateSingleMatch, out IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? candidateMultipleMatches)) 218private bool TryGetNonGenericExports(ImportDefinition definition, out Tuple<ComposablePartDefinition, ExportDefinition>? singleMatch, out IEnumerable<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleMatches) 223List<Tuple<ComposablePartDefinition, ExportDefinition>>? multipleExports = null; 224Tuple<ComposablePartDefinition, ExportDefinition>? singleExport = null; 240multipleExports = new List<Tuple<ComposablePartDefinition, ExportDefinition>>();
System.ComponentModel.Composition.Registration (24)
System\ComponentModel\Composition\Registration\ExportBuilder.cs (6)
13private List<Tuple<string, object>> _metadataItems; 14private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 43_metadataItems ??= new List<Tuple<string, object>>(); 51_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 75foreach (Tuple<string, object> item in _metadataItems) 84foreach (Tuple<string, Func<Type, object>> item in _metadataItemFuncs)
System\ComponentModel\Composition\Registration\PartBuilder.cs (15)
20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 30private readonly List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>> _interfaceExports; 42_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportBuilder>>>(); 188_metadataItems ??= new List<Tuple<string, object>>(); 196_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 269foreach (Tuple<string, object> item in _metadataItems) 286foreach (Tuple<string, Func<Type, object>> item in _metadataItemFuncs) 316foreach (Tuple<Predicate<Type>, Action<Type, ExportBuilder>> exportSpecification in _interfaceExports) 335internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 376internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 386private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportBuilder> configureConstructorImports) 388configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 417internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 503configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System\ComponentModel\Composition\Registration\RegistrationBuilder.cs (3)
89private List<Tuple<object, List<Attribute>>> EvaluateThisTypeAgainstTheConvention(Type type) 93var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 141foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeAgainstTheConvention((Type)member))
System.Composition.Convention (34)
System\Composition\Convention\ConventionBuilder.cs (3)
114private List<Tuple<object, List<Attribute>>> EvaluateThisTypeInfoAgainstTheConvention(TypeInfo typeInfo) 117var configuredMembers = new List<Tuple<object, List<Attribute>>>(); 175foreach (Tuple<object, List<Attribute>> element in EvaluateThisTypeInfoAgainstTheConvention(typeInfo))
System\Composition\Convention\ExportConventionBuilder.cs (6)
20private List<Tuple<string, object>> _metadataItems; 21private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 94_metadataItems ??= new List<Tuple<string, object>>(); 115_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 130foreach (Tuple<string, object> item in _metadataItems) 139foreach (Tuple<string, Func<Type, object>> item in _metadataItemFuncs)
System\Composition\Convention\ImportConventionBuilder.cs (6)
21private List<Tuple<string, object>> _metadataConstraintItems; 22private List<Tuple<string, Func<Type, object>>> _metadataConstraintItemFuncs; 102_metadataConstraintItems ??= new List<Tuple<string, object>>(); 123_metadataConstraintItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 154foreach (Tuple<string, object> item in _metadataConstraintItems) 163foreach (Tuple<string, Func<Type, object>> item in _metadataConstraintItemFuncs)
System\Composition\Convention\PartConventionBuilder.cs (19)
25private List<Tuple<string, object>> _metadataItems; 26private List<Tuple<string, Func<Type, object>>> _metadataItemFuncs; 34private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>> _propertyImports; 35private readonly List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>> _interfaceExports; 45_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>>>(); 46_interfaceExports = new List<Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>>>(); 373_metadataItems ??= new List<Tuple<string, object>>(); 394_metadataItemFuncs ??= new List<Tuple<string, Func<Type, object>>>(); 467foreach (Tuple<string, object> item in _metadataItems) 484foreach (Tuple<string, Func<Type, object>> item in _metadataItemFuncs) 512foreach (Tuple<Predicate<Type>, Action<Type, ExportConventionBuilder>> exportSpecification in _interfaceExports) 529internal bool BuildConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 567internal static void BuildDefaultConstructorAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 577private static void ConfigureConstructorAttributes(ConstructorInfo constructorInfo, ref List<Tuple<object, List<Attribute>>> configuredMembers, Action<ParameterInfo, ImportConventionBuilder> configureConstructorImports) 579configuredMembers ??= new List<Tuple<object, List<Attribute>>>(); 608internal void BuildOnImportsSatisfiedNotification(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 662internal void BuildPropertyAttributes(Type type, ref List<Tuple<object, List<Attribute>>> configuredMembers) 676foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportConventionBuilder>> importSpecification in _propertyImports) 748configuredMembers ??= new List<Tuple<object, List<Attribute>>>();
System.Composition.Runtime (4)
System\Composition\ExportFactoryOfT.cs (3)
12private readonly Func<Tuple<T, Action>> _exportLifetimeContextCreator; 18public ExportFactory(Func<Tuple<T, Action>> exportCreator) 29Tuple<T, Action> untypedLifetimeContext = _exportLifetimeContextCreator.Invoke();
System\Composition\ExportFactoryOfTTMetadata.cs (1)
18public ExportFactory(Func<Tuple<T, Action>> exportCreator, TMetadata metadata)
System.Composition.TypedParts (5)
System\Composition\Debugging\ContainerConfigurationDebuggerProxy.cs (1)
62foreach (var typeSet in types)
System\Composition\Hosting\ContainerConfiguration.cs (4)
24private readonly List<Tuple<IEnumerable<Type>, AttributedModelProvider>> _types = new List<Tuple<IEnumerable<Type>, AttributedModelProvider>>(); 35foreach (var typeSet in _types) 271internal Tuple<IEnumerable<Type>, AttributedModelProvider>[] DebugGetRegisteredTypes()
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\Tensor.cs (6)
4795TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), destination); 4808TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), in destination); 4819TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), destination); 4831TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), in destination); 4842TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), destination); 4854TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), in destination);
System\Numerics\Tensors\netcore\TensorOperation.cs (3)
1862IBinaryOperation_Tensor_Scalar<T, Tuple<int, MidpointRounding>, T> 1875public static void Invoke(ref readonly T x, Tuple<int, MidpointRounding> y, ref T destination) 1880public static void Invoke(ReadOnlySpan<T> x, Tuple<int, MidpointRounding> y, Span<T> destination)
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (3)
29public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2) 250if (other is not Tuple<T1, T2> objTuple) 272if (other is not Tuple<T1, T2> objTuple)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TupleExtensions.cs (9)
33this Tuple<T1, T2> value, 138this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>> value, 292this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>> value, 475this Tuple<T1, T2> value) 546this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>> value) 624this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>> value) 706public static Tuple<T1, T2> 777public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>> 855public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TupleSlim.cs (1)
6/// <summary>Simple alternative to <see cref="Tuple{T1, T2}"/> for use in corelib.</summary>
System\Reflection\Runtime\ParameterInfos\RuntimeFatMethodParameterInfo.cs (3)
62private Tuple<bool, object> DefaultValueInfo 66Tuple<bool, object> defaultValueInfo = _lazyDefaultValueInfo; 87private volatile Tuple<bool, object> _lazyDefaultValueInfo;
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
866[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,>))]
System.Runtime.Caching (2)
System\Runtime\Caching\MemoryCacheEntry.cs (2)
37internal Tuple<MemoryCacheStore, MemoryCacheEntry> _updateSentinel; // the MemoryCacheEntry (and its associated store) of the OnUpdateSentinel for this entry, if there is one 306Tuple<MemoryCacheStore, MemoryCacheEntry> sentinelInfo = fields._updateSentinel;
System.Runtime.Serialization.Schema (1)
System\Runtime\Serialization\Schema\CodeExporter.cs (1)
341else if (param is Tuple<Type, object[]?> typeParameters)
System.ServiceModel.Federation (6)
System\Runtime\TaskHelpers.cs (6)
40var continuationState = Tuple.Create(tcs, callback); 43var tuple = obj as Tuple<TaskCompletionSource<TResult>, AsyncCallback>; 96var continuationState = Tuple.Create(tcs, callback); 99var tuple = obj as Tuple<TaskCompletionSource<object>, AsyncCallback>;
System.ServiceModel.Primitives (19)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (3)
75IList<Tuple<string, string>> exceptionInfo = new List<Tuple<string, string>>() 83foreach (Tuple<string, string> item in exceptionInfo)
Internals\System\Runtime\TaskHelpers.cs (8)
55var continuationState = Tuple.Create(tcs, callback); 58var tuple = obj as Tuple<TaskCompletionSource<TResult>, AsyncCallback>; 111var continuationState = Tuple.Create(tcs, callback); 114var tuple = obj as Tuple<TaskCompletionSource<object>, AsyncCallback>; 168var tuple = iar.AsyncState as Tuple<EndWithOutDelegate<TOut2, TOut1>, TaskCompletionSource<(TOut1, TOut2)>>;
Internals\System\Runtime\TimeoutHelper.cs (2)
263var args = (Tuple<long, CancellationTokenSource>)state;
System\ServiceModel\Dispatcher\SyncMethodInvoker.cs (3)
55var task = result as Task<Tuple<object, object[]>>; 61var tuple = task.Result; 66private Task<Tuple<object, object[]>> InvokeAsync(object instance, object[] inputs)
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (3)
66var invokeTask = result as Task<Tuple<object, object[]>>; 73Tuple<object, object[]> tuple = null; 124private async Task<Tuple<object, object[]>> InvokeAsync(object instance, object[] inputs)
System.Text.Json (7)
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (5)
16private readonly Func<IEnumerable<Tuple<TKey, TValue>>, TMap> _mapConstructor; 27((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value)); 35state.Current.ReturnValue = new List<Tuple<TKey, TValue>>(); 41List<Tuple<TKey, TValue>> listToConvert = (List<Tuple<TKey, TValue>>)state.Current.ReturnValue!;
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (2)
298public Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap> CreateFSharpMapConstructor<TFSharpMap, TKey, TValue>() 301return CreateDelegate<Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap>>(EnsureMemberExists(_fsharpMapCtor, "Microsoft.FSharp.Collections.MapModule.OfSeq<TKey, TValue>(IEnumerable<Tuple<TKey, TValue>> source)").MakeGenericMethod(typeof(TKey), typeof(TValue)));
System.Threading.Tasks.Dataflow (45)
Base\DataflowBlock.cs (2)
462var tuple = (Tuple<SendAsyncSource<TOutput>, Exception>)state!;
Blocks\BatchedJoinBlock.cs (18)
29public sealed class BatchedJoinBlock<T1, T2> : IReceivableSourceBlock<Tuple<IList<T1>, IList<T2>>>, IDebuggerDisplay 40private readonly SourceCore<Tuple<IList<T1>, IList<T2>>> _source; 67_source = new SourceCore<Tuple<IList<T1>, IList<T2>>>( 126public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>>> target, DataflowLinkOptions linkOptions) 132public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>>? item) 138public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<IList<T1>, IList<T2>>>? items) { return _source.TryReceiveAll(out items); } 173Tuple<IList<T1>, IList<T2>>? ISourceBlock<Tuple<IList<T1>, IList<T2>>>.ConsumeMessage( 174DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>>> target, out bool messageConsumed) 180bool ISourceBlock<Tuple<IList<T1>, IList<T2>>>.ReserveMessage( 181DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>>> target) 187void ISourceBlock<Tuple<IList<T1>, IList<T2>>>.ReleaseReservation( 188DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>>> target) 221private readonly SourceCore<Tuple<IList<T1>, IList<T2>>>.DebuggingInformation _sourceDebuggingInformation; 233public IEnumerable<Tuple<IList<T1>, IList<T2>>> OutputQueue { get { return _sourceDebuggingInformation.OutputQueue; } } 257public TargetRegistry<Tuple<IList<T1>, IList<T2>>> LinkedTargets { get { return _sourceDebuggingInformation.LinkedTargets; } } 259public ITargetBlock<Tuple<IList<T1>, IList<T2>>>? NextMessageReservedFor { get { return _sourceDebuggingInformation.NextMessageReservedFor; } }
Blocks\JoinBlock.cs (19)
31public sealed class JoinBlock<T1, T2> : IReceivableSourceBlock<Tuple<T1, T2>>, IDebuggerDisplay 36private readonly SourceCore<Tuple<T1, T2>> _source; 58Action<ISourceBlock<Tuple<T1, T2>>, int>? onItemsRemoved = null; 62_source = new SourceCore<Tuple<T1, T2>>(this, dataflowBlockOptions, 110public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2>> target, DataflowLinkOptions linkOptions) 116public bool TryReceive(Predicate<Tuple<T1, T2>>? filter, [NotNullWhen(true)] out Tuple<T1, T2>? item) 122public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2>>? items) { return _source.TryReceiveAll(out items); } 163Tuple<T1, T2>? ISourceBlock<Tuple<T1, T2>>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target, out bool messageConsumed) 169bool ISourceBlock<Tuple<T1, T2>>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target) 175void ISourceBlock<Tuple<T1, T2>>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2>> target) 199private readonly SourceCore<Tuple<T1, T2>>.DebuggingInformation _sourceDebuggingInformation; 211public IEnumerable<Tuple<T1, T2>> OutputQueue { get { return _sourceDebuggingInformation.OutputQueue; } } 235public TargetRegistry<Tuple<T1, T2>> LinkedTargets { get { return _sourceDebuggingInformation.LinkedTargets; } } 237public ITargetBlock<Tuple<T1, T2>>? NextMessageReservedFor { get { return _sourceDebuggingInformation.NextMessageReservedFor; } }
Blocks\TransformBlock.cs (2)
259var tuple = (Tuple<TransformBlock<TInput, TOutput>, KeyValuePair<TInput, long>>)state!;
Blocks\TransformManyBlock.cs (2)
242var tuple = (Tuple<TransformManyBlock<TInput, TOutput>, KeyValuePair<TInput, long>>)state!;
Blocks\WriteOnceBlock.cs (2)
139Tuple<WriteOnceBlock<T>, IList<Exception>> blockAndList = (Tuple<WriteOnceBlock<T>, IList<Exception>>)state!;
vstest.console (3)
Internal\FilePatternParser.cs (3)
76var splitPattern = SplitFilePatternOnWildCard(filePattern); 96private Tuple<string, string> SplitFilePatternOnWildCard(string filePattern) 122Tuple<string, string> splitPattern = new(searchDir, pattern);
vstest.console.arm64 (3)
src\vstest\src\vstest.console\Internal\FilePatternParser.cs (3)
76var splitPattern = SplitFilePatternOnWildCard(filePattern); 96private Tuple<string, string> SplitFilePatternOnWildCard(string filePattern) 122Tuple<string, string> splitPattern = new(searchDir, pattern);