5 types derived from Tuple
PresentationCore (1)
PresentationFramework (3)
System.Xaml (1)
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\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)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.Build (49)
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)
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)
Microsoft.Build.Tasks.Core (4)
Microsoft.CodeAnalysis.CSharp (2)
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)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.Maui.Controls (13)
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);
Microsoft.Maui.Controls.Build.Tasks (5)
Microsoft.ML.AutoML (4)
Microsoft.ML.Core (3)
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)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TimeSeries (5)
Microsoft.ML.TorchSharp (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)
PresentationCore (1)
PresentationFramework (6)
System.Collections.Concurrent (2)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (8)
System.Composition.Convention (1)
System.Private.CoreLib (1)
System.Private.DataContractSerialization (1)
System.Text.Json (1)
xunit.console (1)
664 references to Tuple
AnalyzerRunner (2)
CodeGenerator (2)
dotnet-svcutil-lib (31)
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);
Infrastructure.Common (6)
Interop.FunctionalTests (3)
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Microsoft.AspNetCore.Http.Abstractions.Tests (4)
Microsoft.AspNetCore.Http.Tests (3)
Microsoft.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.TestHost (2)
Microsoft.Build (27)
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)
Microsoft.Build.Tasks.Core (17)
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)
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)
Microsoft.CodeAnalysis.CSharp (18)
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)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (12)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (27)
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)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.Features (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
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)
Microsoft.CodeAnalysis.UnitTests (12)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.DotNet.AsmDiff (4)
Microsoft.DotNet.Build.Tasks.Packaging (2)
Microsoft.DotNet.Open.Api.Tools.Tests (5)
Microsoft.DotNet.XUnitAssert.Tests (4)
Microsoft.Extensions.AI.Tests (2)
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)
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)
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)
Microsoft.ML.Core (7)
Microsoft.ML.Core.Tests (5)
Microsoft.ML.Data (1)
Microsoft.ML.IntegrationTests (2)
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)
Microsoft.ML.TorchSharp (11)
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)
Microsoft.Net.Http.Headers.Tests (1)
Microsoft.VisualStudio.LanguageServices (30)
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;
mscorlib (1)
netstandard (1)
PresentationCore (15)
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;
PresentationFramework (18)
Sockets.FunctionalTests (1)
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.Composition (63)
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\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.Composition.Convention (34)
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.TypedParts (5)
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.Private.CoreLib (13)
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>>>
System.Runtime (1)
System.Runtime.Caching (2)
System.Runtime.Serialization.Schema (1)
System.Security.Cryptography (7)
System.ServiceModel.Federation (6)
System.Text.Json (6)
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)
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; } }
xunit.console (10)
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))