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)
11921private class ContainerSizeDual : Tuple<Size, Size> 11941private 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>
201 instantiations of Tuple
CodeGenerator (9)
HttpUtilities\HttpUtilities.cs (9)
18new Tuple<string, String>("CONNECT ", "Connect"), 19new Tuple<string, String>("DELETE ", "Delete"), 20new Tuple<string, String>("HEAD ", "Head"), 21new Tuple<string, String>("PATCH ", "Patch"), 22new Tuple<string, String>("POST ", "Post"), 23new Tuple<string, String>("PUT ", "Put"), 24new Tuple<string, String>("OPTIONS ", "Options"), 25new Tuple<string, String>("TRACE ", "Trace"), 26new Tuple<string, String>("GET ", "Get")
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())),
Infrastructure.Common (18)
OSHelper.cs (18)
31new Tuple<string, OSID>("Mariner", OSID.Mariner), 32new Tuple<string, OSID>("debian", OSID.Debian), 33new Tuple<string, OSID>("fedora", OSID.Fedora), 34new Tuple<string, OSID>("sles", OSID.SLES), 35new Tuple<string, OSID>("opensuse", OSID.OpenSUSE), 36new Tuple<string, OSID>("osx", OSID.OSX), 37new Tuple<string, OSID>("rhel", OSID.RHEL), 38new Tuple<string, OSID>("ubuntu", OSID.Ubuntu), 42new Tuple<string, OSID>("win81", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2), 43new Tuple<string, OSID>("win7", OSID.Windows_7 | OSID.Windows_Server_2008_R2), 52new Tuple<string, OSID>("Microsoft Windows 6.0.", OSID.Windows_Server_2008), 53new Tuple<string, OSID>("Microsoft Windows 6.1.", OSID.Windows_7 | OSID.Windows_Server_2008_R2), 54new Tuple<string, OSID>("Microsoft Windows 6.2.", OSID.Windows_8 | OSID.Windows_Server_2012), 55new Tuple<string, OSID>("Microsoft Windows 6.3.", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2), 56new Tuple<string, OSID>("Microsoft Windows 10.", OSID.Windows_10 | OSID.Windows_Server_2016), 57new Tuple<string, OSID>(MicrosoftWindowsPhoneName, OSID.WindowsPhone), 58new Tuple<string, OSID>(MicrosoftWindowsName, OSID.AnyWindows), // reserved for "Don't know which version" 59new Tuple<string, OSID>("Darwin", OSID.OSX),
Interop.FunctionalTests (1)
H2SpecCommands.cs (1)
132testCases.Add(new Tuple<string, string>($"{groupName}/{sectionId}/{testNumber}", description));
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Binding\FormDataMapperTests.cs (1)
1811var expected = new Tuple<int, string>(1, "John");
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
UseMiddlewareTest.cs (1)
346public void AddKeyedService(object key, Type type, object value) => _services[key] = new Tuple<Type, object>(type, value);
Microsoft.AspNetCore.Http.Tests (1)
Features\FakeResponseFeature.cs (1)
12_onCompletedCallbacks.Add(new Tuple<Func<object, Task>, object>(callback, state));
Microsoft.AspNetCore.InternalTesting (2)
xunit\AspNetTestRunner.cs (2)
69result = new Tuple<decimal, string>(result.Item1, _testOutputHelper.Output); 102return new(totalTimeTaken, string.Join(Environment.NewLine, messages));
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\RequestContext.FeatureCollection.cs (2)
461_onStartingActions.Add(new Tuple<Func<object, Task>, object>(callback, state)); 472_onCompletedActions.Add(new Tuple<Func<object, Task>, object>(callback, state));
Microsoft.AspNetCore.Server.IntegrationTesting (1)
TestMatrix.cs (1)
88Skips.Add(new Tuple<Func<TestVariant, bool>, string>(check, message));
Microsoft.Build (49)
BackEnd\BuildManager\LegacyThreadingData.cs (1)
93_legacyThreadingEventsById[submissionId] = new Tuple<AutoResetEvent, ManualResetEvent>(
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
956_clientToServerStream.BeginRead(packetData, 0, packetLength, BodyReadComplete, new Tuple<byte[], int>(packetData, packetLength));
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)
3790AvailableStaticMethods.TryAdd(typeName, simpleMethodName, new Tuple<string, Type>(assemblyQualifiedTypeName, receiverType)); 3831AvailableStaticMethods.TryAdd(typeName, new Tuple<string, Type>(typeName, receiverType));
Resources\Constants.cs (36)
291var environmentType = new Tuple<string, Type>(null, typeof(Environment)); 292var directoryType = new Tuple<string, Type>(null, typeof(Directory)); 293var fileType = new Tuple<string, Type>(null, typeof(File)); 294var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation)); 295var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform)); 334availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 335availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 336availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request 339availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions))); 340availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte))); 341availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char))); 342availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert))); 343availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime))); 344availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset))); 345availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal))); 346availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double))); 347availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum))); 348availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid))); 349availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16))); 350availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32))); 351availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64))); 352availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path))); 353availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math))); 354availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16))); 355availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32))); 356availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64))); 357availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte))); 358availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single))); 359availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String))); 360availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer))); 361availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan))); 362availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex))); 363availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder))); 364availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version))); 365availableStaticMethods.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)); 373var operatingSystemType = new Tuple<string, Type>("Microsoft.Build.Framework.OperatingSystem, Microsoft.Build.Framework, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null);
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 (4)
AssemblyDependency\ReferenceTable.cs (1)
2070redistListAndOtherFrameworkName = new Tuple<RedistList, string>(redistList, otherFrameworkName);
ResolveSDKReference.cs (3)
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.CodeAnalysis.CSharp (2)
Symbols\Source\SourceAssemblySymbol.cs (1)
2320locationAndValue = new Tuple<Location, string>(GetAssemblyAttributeLocationForDiagnostic(nodeOpt), displayName);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (1)
285return new Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>>(null, ImmutableArray<NamedTypeSymbol>.Empty);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (9)
CodeActions\AddUsing\AddUsingNuGetTests.cs (9)
84""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 121""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 156""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 191""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 216""", new TestParameters(fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object))); 238var data = new FixProviderData(installerServiceMock.Object, packageServiceMock.Object); 302""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 339""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object)); 374""", fixProviderData: new FixProviderData(installerServiceMock.Object, packageServiceMock.Object));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
78var tup = new Tuple<int, int>(1, 2);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (2)
1766return new Tuple<TNode, SemanticModel>(node, compilation.GetSemanticModel(compilation.SyntaxTrees[treeIndex])); 1777return new Tuple<IList<TNode>, SemanticModel>(nodes, compilation.GetSemanticModel(compilation.SyntaxTrees[treeIndex]));
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Protocol\Converters\ParameterInformationConverter.cs (1)
27parameter.Label = new Tuple<int, int>(labelElement[0].GetInt32(), labelElement[1].GetInt32());
Microsoft.CodeAnalysis.Test.Utilities (4)
Assert\AssertXml.cs (3)
145Tuple<XElement, XElement> rootPair = new Tuple<XElement, XElement>(expectedRoot, actualRoot); 197stack.Push(new Tuple<XElement, XElement>(child1, child2)); 265return new Tuple<XName, string>(attribute.Name, attribute.Value);
Win32Res.cs (1)
269return new Tuple<string, string>(new string(key), new string(value));
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.Http.Headers.Tests (5)
RangeItemHeaderValueTest.cs (5)
101CheckValidTryParse(",,1-2, 3 - , , -6 , ,,", new Tuple<long?, long?>(1, 2), new Tuple<long?, long?>(3, null), 102new Tuple<long?, long?>(null, 6)); 103CheckValidTryParse("1-2,", new Tuple<long?, long?>(1, 2)); 104CheckValidTryParse("1-", new Tuple<long?, long?>(1, null));
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)
12532new Tuple<WeakReference<ItemsControl>,TraceList>(
System\Windows\Documents\TextStore.cs (1)
5004new 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\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)
504genericParameters[i] = new Tuple<Type, object[]?>(paramType, paramParameters);
System.Text.Json (1)
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (1)
26((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value));
xunit.console (1)
common\AssemblyResolution\DependencyContextAssemblyCache.cs (1)
22static readonly Tuple<string, Assembly> ManagedAssemblyNotFound = new Tuple<string, Assembly>(null, null);
664 references to Tuple
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
200private static void WriteDiagnosticResults(ImmutableArray<Tuple<ProjectId, Diagnostic>> diagnostics, string fileName) 212foreach (var diagnostic in orderedDiagnostics)
CodeGenerator (2)
HttpUtilities\HttpUtilities.cs (2)
32private static string GenerateFile(Tuple<string, String>[] httpMethods) 281private static MethodInfo GetMethodStringAndUlongAndMaskLength(Tuple<string, string> method)
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)
Infrastructure.Common (6)
OSHelper.cs (6)
29private static List<Tuple<string, OSID>> _runtimeToOSID = new List<Tuple<string, OSID>> 50private static List<Tuple<string, OSID>> _descriptionToOSID = new List<Tuple<string, OSID>> 134foreach (var pair in _descriptionToOSID) 190foreach (var pair in _runtimeToOSID)
Interop.FunctionalTests (3)
H2SpecCommands.cs (2)
74public static IList<Tuple<string, string>> EnumerateTestCases() 83var testCases = new List<Tuple<string, string>>();
H2SpecTests.cs (1)
80foreach (var testcase in testCases)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Binding\FormDataMapperTests.cs (2)
1811var expected = new Tuple<int, string>(1, "John"); 1822var result = FormDataMapper.Map<Tuple<int, string>>(reader, options);
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
UseMiddlewareTest.cs (4)
339private readonly Dictionary<object, Tuple<Type, object>> _services = new Dictionary<object, Tuple<Type, object>>(); 350if (_services.TryGetValue(serviceKey!, out var value)) 377if (_services.TryGetValue(serviceType, out var value))
Microsoft.AspNetCore.Http.Tests (3)
Features\FakeResponseFeature.cs (3)
8List<Tuple<Func<object, Task>, object>> _onCompletedCallbacks = new List<Tuple<Func<object, Task>, object>>(); 19foreach (var callback in callbacks)
Microsoft.AspNetCore.InternalTesting (4)
xunit\AspNetTestRunner.cs (4)
53protected override async Task<Tuple<decimal, string>> InvokeTestAsync(ExceptionAggregator aggregator) 61var result = retryAttribute is null 76private async Task<Tuple<decimal, string>> RunTestCaseWithRetryAsync(RetryAttribute retryAttribute, ExceptionAggregator aggregator) 84var result = await base.InvokeTestAsync(aggregator).ConfigureAwait(false);
Microsoft.AspNetCore.Server.HttpSys (6)
RequestProcessing\RequestContext.FeatureCollection.cs (6)
71private List<Tuple<Func<object, Task>, object>>? _onStartingActions = new List<Tuple<Func<object, Task>, object>>(); 72private List<Tuple<Func<object, Task>, object>>? _onCompletedActions = new List<Tuple<Func<object, Task>, object>>(); 646var actionPair = actions[i]; 737var actionPair = actions[i];
Microsoft.AspNetCore.Server.IntegrationTesting (3)
TestMatrix.cs (3)
19private IList<Tuple<Func<TestVariant, bool>, string>> Skips { get; } = new List<Tuple<Func<TestVariant, bool>, string>>(); 302foreach (var skipPair in Skips)
Microsoft.AspNetCore.TestHost (2)
TestWebSocket.cs (1)
18public static Tuple<TestWebSocket, TestWebSocket> CreatePair(string? subProtocol)
WebSocketClient.cs (1)
137var websockets = TestWebSocket.CreatePair(context.SubProtocol);
Microsoft.Build (27)
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;
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
1001var state = (Tuple<byte[], int>)result.AsyncState;
Construction\Solution\SolutionProjectGenerator.cs (2)
105private readonly Tuple<string, string>[] _metaprojectGlobalProperties = 2077foreach (Tuple<string, string> property in _metaprojectGlobalProperties)
Evaluation\Expander.cs (1)
3754Tuple<string, Type> cachedTypeInformation;
Logging\BaseConsoleLogger.cs (1)
79foreach (var parameter in LoggerParametersHelper.ParseParameters(Parameters))
Logging\TerminalLogger\TerminalLogger.cs (1)
336foreach (var parameter in LoggerParametersHelper.ParseParameters(Parameters))
Resources\Constants.cs (14)
176private static ConcurrentDictionary<string, Tuple<string, Type>> s_availableStaticMethods; 199internal static bool TryAdd(string key, Tuple<string, Type> value) 211public static bool TryAdd(string typeFullName, string simpleMethodName, Tuple<string, Type> typeInformation) 219internal static bool TryGetValue(string key, out Tuple<string, Type> value) 227internal static Tuple<string, Type> GetValue(string key) 229Tuple<string, Type> typeInformation; 244internal static Tuple<string, Type> GetTypeInformationFromTypeCache(string typeFullName, string simpleMethodName) 288var availableStaticMethods = new ConcurrentDictionary<string, Tuple<string, Type>>(StringComparer.OrdinalIgnoreCase); 291var environmentType = new Tuple<string, Type>(null, typeof(Environment)); 292var directoryType = new Tuple<string, Type>(null, typeof(Directory)); 293var fileType = new Tuple<string, Type>(null, typeof(File)); 294var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation)); 295var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform)); 373var operatingSystemType = new Tuple<string, Type>("Microsoft.Build.Framework.OperatingSystem, Microsoft.Build.Framework, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null);
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); 1999Tuple<RedistList, string> redistListOtherFramework = GetHighestVersionFullFrameworkForTFM(_targetFrameworkMoniker); 2019private Tuple<RedistList, string> GetHighestVersionFullFrameworkForTFM(FrameworkNameVersioning targetFrameworkMoniker) 2022Tuple<RedistList, string> redistListAndOtherFrameworkName = null;
GetInstalledSDKLocations.cs (2)
141IDictionary<string, Tuple<string, string>> installedSDKs = null; 162foreach (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.Utilities.Core (4)
ToolLocationHelper.cs (4)
417public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string targetPlatformIdentifier, Version targetPlatformVersion) 429public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion) 442public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string[] multiPlatformDiskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion) 444var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.Cci.Extensions (5)
Dgml\DgmlExtensions.cs (1)
50foreach (var edge in edges)
Differs\ListMerger.cs (4)
22public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, T[] list1) where T : class 27public static List<Tuple<DifferenceType, T>> Merge<T>(T[] list0, int list0Start, int list0End, T[] list1, int list1Start, int list1End) where T : class 29List<Tuple<DifferenceType, T>> list = new List<Tuple<DifferenceType, T>>();
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (2)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 51var lastParsed = Volatile.Read(ref _lastParsed);
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)
34private Tuple<CultureInfo, string>? _lazyDocComment;
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
122private Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
306public Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
81private Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Metadata\PE\PEPropertySymbol.cs (1)
180public Tuple<CultureInfo, string> _lazyDocComment;
Symbols\Source\SourceAssemblySymbol.cs (7)
2130ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null; 2194private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap; 2272ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap) 2306new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null); 2313Tuple<Location, string> locationAndValue = null; 2326ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null; 2333keys = 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); 438private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeOneDeclaredBases(ConsList<TypeSymbol> newBasesBeingResolved, SingleTypeDeclaration decl, BindingDiagnosticBag diagnostics)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (6)
CommandLineTests.cs (6)
12420var list = new List<Tuple<string, DebugInformationFormat>>() 12428foreach (var tuple in list) 12445var list = new List<Tuple<string, OutputKind>>() 12455foreach (var tuple in list) 12465var list = new List<Tuple<string, Platform>>() 12475foreach (var tuple in list)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
CodeActions\AddUsing\AddUsingNuGetTests.cs (4)
26using FixProviderData = Tuple<IPackageInstallerService, ISymbolSearchService>; 43var data = (FixProviderData)parameters.fixProviderData; 238var data = new FixProviderData(installerServiceMock.Object, packageServiceMock.Object);
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (5)
76foreach (var result in allResults) 105async Task<List<Tuple<Solution, Solution>>> TestOperationAsync( 110var results = new List<Tuple<Solution, Solution>>(); 160var oldAndNewSolution = await TestOperationAsync(testOptions, workspace); 219async Task<Tuple<Solution, Solution>> TestOperationAsync(TestParameters parameters, EditorTestWorkspace workspace)
SymbolKey\SymbolKeyMetadataVsSourceTests.cs (3)
158var bindingtuples = GetBindingNodesAndModel<ExpressionSyntax>(comp2); 346var bindingtuples = GetBindingNodesAndModel<ExpressionSyntax>(comp40); 430var bindingtuples = GetBindingNodesAndModel<ExpressionSyntax>(comp40);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
FlowAnalysis\FlowTestBase.cs (2)
287var tuple = GetBindingNodesAndModel<ExpressionSyntax>(comp, treeindex, which); 298var tuple = GetBindingNodesAndModel<StatementSyntax>(comp, treeindex, which);
Microsoft.CodeAnalysis.CSharp.Features (1)
Completion\CompletionProviders\ObjectAndWithInitializerCompletionProvider.cs (1)
102protected override Tuple<ITypeSymbol, Location>? GetInitializedType(
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (27)
Diagnostics\Configuration\ConfigureCodeStyle\BooleanCodeStyleOptionConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureCodeStyle\EnumCodeStyleOptionConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureCodeStyle\MultipleCodeStyleOptionConfigurationTests.cs (1)
37internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
47internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
47internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\CodeStyleOptionBasedSeverityConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\CSharpCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
47internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\MultipleCodeStyleOptionBasedSeverityConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Configuration\ConfigureSeverity\VarForBuiltInTypesSeverityConfigurationTests.cs (1)
26internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Suppression\RemoveSuppressionTests.cs (2)
56internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 945internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Suppression\SuppressionAllCodeTests.cs (1)
30internal override Tuple<Analyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (1)
30internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Diagnostics\Suppression\SuppressionTests.cs (13)
49internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 663internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 712internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 749internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 822internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 885internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 935internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 970internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 991internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 1028internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 1115internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 2085internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace) 2463internal override Tuple<DiagnosticAnalyzer, IConfigurationFixProvider> CreateDiagnosticProviderAndFixer(Workspace workspace)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ObjectFormatterTests.cs (1)
78var tup = new Tuple<int, int>(1, 2);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\NamedAndOptionalTests.cs (1)
811var nodeAndModel = GetBindingNodeAndModel<IdentifierNameSyntax>(comp);
Semantics\NullableTests.cs (3)
1262List<Tuple<string, string[,]>> items = new List<Tuple<string, string[,]>>() 1283foreach (var item in items)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Symbols\AccessorOverriddenOrHiddenMembersTests.cs (1)
998foreach (var testCase in testCases)
Symbols\AnonymousTypesSemanticsTests.cs (1)
1537var tuple = GetBindingNodeAndModel<ExpressionSyntax>(comp);
Symbols\ConversionTests.cs (1)
349var tuple = GetBindingNodeAndModel<ExpressionSyntax>(comp);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Syntax\SyntaxAnnotationTests.cs (3)
471var annotations = new List<Tuple<SyntaxAnnotation, SyntaxNodeOrToken>>(); 550private void TestAnnotations(List<Tuple<SyntaxAnnotation, SyntaxNodeOrToken>> annotations, SyntaxNode currentRoot) 553foreach (var pair in annotations)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
CSharpTestBase.cs (3)
1762public Tuple<TNode, SemanticModel> GetBindingNodeAndModel<TNode>(CSharpCompilation compilation, int treeIndex = 0) where TNode : SyntaxNode 1769public Tuple<TNode, SemanticModel> GetBindingNodeAndModel<TNode>(Compilation compilation, int treeIndex = 0) where TNode : SyntaxNode 1774public Tuple<IList<TNode>, SemanticModel> GetBindingNodesAndModel<TNode>(CSharpCompilation compilation, int treeIndex = 0, int which = -1) where TNode : SyntaxNode
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Formatting\FormattingMultipleSpanTests.cs (2)
174var tuple = PreprocessMarkers(content); 179private static Tuple<string, List<TextSpan>> PreprocessMarkers(string codeWithMarker)
Microsoft.CodeAnalysis.EditorFeatures (5)
Suggestions\SuggestedActions\SuggestedAction.CaretPositionRestorer.cs (5)
25private readonly IList<Tuple<ITextView, IMappingPoint>> _caretPositions; 41private IList<Tuple<ITextView, IMappingPoint>> GetCaretPositions() 45var result = new List<Tuple<ITextView, IMappingPoint>>(); 67foreach (var tuple in _caretPositions) 85foreach (var tuple in _caretPositions)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
QuickInfo\AbstractSemanticQuickInfoSourceTests.cs (1)
35protected static Tuple<string, string>[] NoClassifications()
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
EditorAdapter\TextSnapshotImplementationTest.cs (5)
19private static Tuple<ITextSnapshot, SourceText> Create(params string[] lines) 30var tuple = Create("goo", "bar"); 40var tuple = Create("goo", "bar"); 51var tuple = Create("goo", "bar"); 62var tuple = Create("goo", "bar");
Microsoft.CodeAnalysis.Features (3)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
19protected abstract Tuple<ITypeSymbol, Location>? GetInitializedType(Document document, SemanticModel semanticModel, int position, CancellationToken cancellationToken);
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (2)
19private Tuple<string, Dictionary<int, int>>? _lastParsed; 51var lastParsed = Volatile.Read(ref _lastParsed);
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Handler\Diagnostics\DiagnosticSources\TaskListDiagnosticSource.cs (1)
27private static Tuple<ImmutableArray<string>, ImmutableArray<TaskListItemDescriptor>> s_lastRequestedTokens =
Protocol\Converters\ParameterInformationConverter.cs (1)
31parameter.Label = labelElement.Deserialize<SumType<string, Tuple<int, int>>>(options);
Protocol\ParameterInformation.cs (1)
35public SumType<string, Tuple<int, int>> Label
Microsoft.CodeAnalysis.Test.Utilities (15)
Assert\AssertXml.cs (10)
50if (!CheckEqual(expectedRoot, actualRoot, ShallowElementComparer.Instance, out var firstMismatch)) 91Tuple<XElement, XElement> firstMismatch, 139private static bool CheckEqual(XElement expectedRoot, XElement actualRoot, IEqualityComparer<XElement> shallowComparer, out Tuple<XElement, XElement> firstMismatch) 145Tuple<XElement, XElement> rootPair = new Tuple<XElement, XElement>(expectedRoot, actualRoot); 153Stack<Tuple<XElement, XElement>> stack = new Stack<Tuple<XElement, XElement>>(); 158Tuple<XElement, XElement> pair = stack.Pop(); 252IEnumerable<Tuple<XName, string>> attributes1 = element1.Attributes().Select(MakeAttributeTuple); 253IEnumerable<Tuple<XName, string>> attributes2 = element2.Attributes().Select(MakeAttributeTuple); 263private static Tuple<XName, string> MakeAttributeTuple(XAttribute attribute)
Win32Res.cs (5)
138public static IEnumerable<Tuple<string, string>> ReadStringFileInfo(BinaryReader reader, int sizeTotalStringFileInfo) 140var result = new List<Tuple<string, string>>(); 216IEnumerable<Tuple<string, string>> keyValPairs; 222foreach (var pair in keyValPairs) 240private static Tuple<string, string> GetVerStringPair(BinaryReader reader)
Microsoft.CodeAnalysis.UnitTests (12)
Collections\List\SegmentedList.Generic.Tests.Remove.cs (4)
105Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[] 137Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[]
Collections\List\SegmentedList.Generic.Tests.Reverse.cs (4)
118Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[] 150Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[]
Collections\List\SegmentedList.Generic.Tests.Sort.cs (4)
165Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[] 191Tuple<int, int>[] InvalidParameters = new Tuple<int, int>[]
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Metadata\PE\PEEventSymbol.vb (1)
38Private _lazyDocComment As Tuple(Of CultureInfo, String)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
FlowAnalysis\FlowTestBase.vb (1)
69Protected Function CompileAndAnalyzeControlAndDataFlow(program As XElement, Optional ilSource As XCData = Nothing, Optional errors As XElement = Nothing) As Tuple(Of ControlFlowAnalysis, DataFlowAnalysis)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\SyntaxAnnotationTests.vb (2)
433Dim annotations = New List(Of Tuple(Of SyntaxAnnotation, SyntaxNodeOrToken))() 506Private Sub TestAnnotations(annotations As List(Of Tuple(Of SyntaxAnnotation, SyntaxNodeOrToken)), currentRoot As SyntaxNode)
Microsoft.CodeAnalysis.Workspaces (2)
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.Workspaces.Test.Utilities (2)
Options\OptionsTestInfo.cs (1)
16private static Tuple<string, ImmutableDictionary<string, OptionsTestInfo>>? s_cachedResult;
SolutionUtilities.cs (1)
99public static Tuple<Project, ProjectReference> GetSingleAddedProjectReference(Solution oldSolution, Solution newSolution)
Microsoft.DotNet.AsmDiff (4)
DiffCSharpWriter.cs (4)
313foreach (var mt in merged) 343public IEnumerable<Tuple<DifferenceType, SyntaxToken>> GetTokenDiff(IDefinition def1, IDefinition def2) 351List<Tuple<DifferenceType, SyntaxToken>> merged = new List<Tuple<DifferenceType, SyntaxToken>>();
Microsoft.DotNet.Build.Tasks.Packaging (2)
NugetPropertyStringProvider.cs (2)
22var property = GetKeyValuePair(propertyString); 41private static Tuple<string, string> GetKeyValuePair(string propertyString)
Microsoft.DotNet.Open.Api.Tools.Tests (5)
OpenApiTestBase.cs (5)
90private static IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> DownloadMock() 98return new Dictionary<string, Tuple<string, ContentDispositionHeaderValue>> { 124private readonly IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> _results; 126public TestHttpClientWrapper(IDictionary<string, Tuple<string, ContentDispositionHeaderValue>> results) 137var result = _results[url];
Microsoft.DotNet.XUnitAssert.Tests (4)
EquivalenceAssertsTests.cs (4)
1714 var expected = Tuple.Create(42, "Hello world"); 1715 var actual = Tuple.Create(42, "Hello world"); 1723 var expected = Tuple.Create(42, "Hello world"); 1724 var actual = Tuple.Create(2112, "Hello world");
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
371var 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]; 1175var imageSize = ImagePreprocessingSize[_options.Arch];
Microsoft.Net.Http.Headers.Tests (1)
RangeItemHeaderValueTest.cs (1)
142private static void CheckValidTryParse(string input, params Tuple<long?, long?>[] expectedRanges)
Microsoft.VisualStudio.LanguageServices (30)
Extensions\DocumentExtensions.cs (2)
19public static IList<Tuple<TextSpan, uint>> GetVisibleCodeBlocks(this Document document, CancellationToken cancellationToken) 21var codeBlocks = new List<Tuple<TextSpan, uint>>();
ProjectSystem\VisualStudioProjectManagementService.cs (1)
69using var _ = ArrayBuilder<Tuple<ProjectItem, string>>.GetInstance(out var projectItemsStack);
Telemetry\CodeMarkerLogger.cs (21)
18private static readonly Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>> s_blockMap 19= new Dictionary<FunctionId, List<Tuple<CodeMarkerId, CodeMarkerId>>>() 21{ FunctionId.NavigateTo_Search, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 27{ FunctionId.Rename_InlineSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 32{ FunctionId.Rename_FindLinkedSpans, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 37{ FunctionId.WinformDesigner_GenerateXML, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 42{ FunctionId.BackgroundCompiler_BuildCompilationsAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 48{ FunctionId.FindReference, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 53{ FunctionId.SmartTags_SmartTagInitializeFixes, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 58{ FunctionId.SmartTags_ApplyQuickFix, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 64{ FunctionId.LineCommit_CommitRegion, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 69{ FunctionId.Tagger_Outlining_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 74{ FunctionId.Tagger_LineSeparator_TagProducer_ProduceTags, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 79{ FunctionId.NavigationBar_ComputeModelAsync, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 84{ FunctionId.Completion_ModelComputer_DoInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 90{ FunctionId.SignatureHelp_ModelComputation_UpdateModelInBackground, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 95{ FunctionId.Formatting_Format, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 100{ FunctionId.Formatting_ApplyResultToBuffer, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 105{ FunctionId.SmartTags_RefreshSession, new List<Tuple<CodeMarkerId, CodeMarkerId>>() 125private static Func<Tuple<CodeMarkerId, CodeMarkerId>, CodeMarkerId> s_startGetter => t => t.Item1; 126private static Func<Tuple<CodeMarkerId, CodeMarkerId>, CodeMarkerId> s_endGetter => t => t.Item2;
Venus\ContainedLanguage.IVsContainedLanguageCodeSupport.cs (2)
110IEnumerable<Tuple<string, string>> membersAndIds = null; 171IEnumerable<Tuple<string, string>> membersAndIds = null;
Venus\ContainedLanguageCodeSupport.cs (4)
86public static IEnumerable<Tuple<string, string>> GetCompatibleEventHandlers( 114var nameAndId = GetCompatibleEventHandlers(document, className, objectTypeName, nameOfEvent, cancellationToken).SingleOrDefault(pair => pair.Item1 == eventHandlerName); 161var existingHandler = existingEventHandlers.SingleOrDefault(e => e.Item1 == eventHandlerName); 290public static IEnumerable<Tuple<string, string>> GetMembers(
mscorlib (1)
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<,>))]
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)
885private void RaiseProcessInputEventHandlers(Tuple<ProcessInputEventHandler, Delegate[]> postProcessInput, ProcessInputEventArgs processInputEventArgs) 927private Tuple<PreProcessInputEventHandler, Delegate[]> _preProcessInput; 928private Tuple<NotifyInputEventHandler, Delegate[]> _preNotifyInput; 929private Tuple<NotifyInputEventHandler, Delegate[]> _postNotifyInput; 930private 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)
2794private Tuple<HwndSourceHook, Delegate[]> _hooks;
PresentationFramework (18)
System\Windows\Controls\DataGrid.cs (4)
5330List<Tuple<int, int>> ranges = null; 5336ranges = new List<Tuple<int, int>>(); 7603List<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)
12473private static List<Tuple<WeakReference<ItemsControl>,TraceList>> s_TargetToTraceListMap 12474= new List<Tuple<WeakReference<ItemsControl>,TraceList>>();
System\Windows\Documents\TextStore.cs (2)
4945private static List<Tuple<WeakReference<FrameworkElement>,TraceList>> s_TargetToTraceListMap 4946= 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;
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\MaxRequestBufferSizeTests.cs (1)
76var maxRequestBufferSizeValues = new Tuple<long?, bool>[] {
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 (8)
System\Numerics\Tensors\netcore\Tensor.cs (6)
5087TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), destination); 5100TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), in destination); 5111TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), destination); 5123TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), in destination); 5134TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), destination); 5146TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), in destination);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
1810IBinaryOperation_Tensor_Scalar<T, Tuple<int, MidpointRounding>, T> 1828public static void Invoke(ReadOnlySpan<T> x, Tuple<int, MidpointRounding> y, Span<T> destination)
System.Private.CoreLib (13)
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\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\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.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
850[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.Security.Cryptography (7)
System\Security\Cryptography\X509Certificates\OpenSslCachedSystemStoreProvider.cs (7)
31private static Tuple<SafeX509StackHandle, SafeX509StackHandle>? s_nativeCollections; 54Tuple<SafeX509StackHandle, SafeX509StackHandle> nativeColls = GetCollections(); 68Tuple<SafeX509StackHandle, SafeX509StackHandle> nativeColls = GetCollections(); 87private static Tuple<SafeX509StackHandle, SafeX509StackHandle> GetCollections() 90Tuple<SafeX509StackHandle, SafeX509StackHandle>? ret = s_nativeCollections; 142private static Tuple<SafeX509StackHandle, SafeX509StackHandle> LoadMachineStores() 306Tuple<SafeX509StackHandle, SafeX509StackHandle> newCollections =
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.Text.Json (6)
System\Text\Json\Serialization\Converters\FSharp\FSharpMapConverter.cs (4)
15private readonly Func<IEnumerable<Tuple<TKey, TValue>>, TMap> _mapConstructor; 26((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!).Add(new Tuple<TKey, TValue>(key, value)); 34state.Current.ReturnValue = new List<Tuple<TKey, TValue>>(); 40state.Current.ReturnValue = _mapConstructor((List<Tuple<TKey, TValue>>)state.Current.ReturnValue!);
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (2)
200public Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap> CreateFSharpMapConstructor<TFSharpMap, TKey, TValue>() 203return 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!;
xunit.console (10)
CommandLine.cs (3)
86XunitProject GetProjectFile(List<Tuple<string, string>> assemblies) 90foreach (var assembly in assemblies) 209var assemblies = new List<Tuple<string, string>>();
common\AssemblyResolution\DependencyContextAssemblyCache.cs (7)
22static readonly Tuple<string, Assembly> ManagedAssemblyNotFound = new Tuple<string, Assembly>(null, null); 33readonly Dictionary<string, Tuple<RuntimeLibrary, RuntimeAssetGroup>> managedAssemblyMap; 37readonly Dictionary<string, Tuple<RuntimeLibrary, RuntimeAssetGroup>> unmanagedAssemblyMap; 162var tupleResult = ResolveManagedAssembly(assemblyName, managedAssemblyLoader); 208Tuple<string, Assembly> ResolveManagedAssembly(string assemblyName, Func<string, Assembly> managedAssemblyLoader) 227if (managedAssemblyMap.TryGetValue(assemblyName, out var libraryTuple)) 272if (unmanagedAssemblyMap.TryGetValue(formattedUnmanagedDllName, out var libraryTuple))