5 types derived from Tuple
PresentationCore (1)
PresentationFramework (3)
System.Xaml (1)
258 instantiations of Tuple
dotnet-svcutil-lib (13)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (7)
678tuple = new Tuple<string, object>(originalStringValue, ReturnBoxedValue(_attributePSVI.typedAttributeValue, AttributeSchemaInfo.XmlType, unwrapTypedValue));
683tuple = new Tuple<string, object>(originalStringValue, this.Value);
693tuple = new Tuple<string, object>(originalStringValue, _atomicValue);
700tuple = new Tuple<string, object>(originalStringValue, string.Empty);
711tuple = new Tuple<string, object>(originalStringValue, value);
726tuple = new Tuple<string, object>(originalStringValue, originalStringValue);
741return new Tuple<XmlSchemaType, object>(tuple_13.Item1, tuple_13.Item3);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
281new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)),
282new Tuple<string, string> (DiagnosticStrings.MessageTag, XmlEncode(exception.Message)),
283new Tuple<string, string> (DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))), // Stack trace is sometimes null
284new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
dotnet-svcutil-lib.Tests (1)
ILCompiler.Compiler (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
ILCompiler.DependencyAnalysisFramework (3)
ILCompiler.ReadyToRun (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
Infrastructure.Common (20)
OSHelper.cs (20)
31new Tuple<string, OSID>("azurelinux", OSID.AzureLinux),
32new Tuple<string, OSID>("Mariner", OSID.AzureLinux), // CBL-Mariner (legacy name for Azure Linux)
33new Tuple<string, OSID>("debian", OSID.Debian),
34new Tuple<string, OSID>("fedora", OSID.Fedora),
35new Tuple<string, OSID>("sles", OSID.SLES),
36new Tuple<string, OSID>("opensuse", OSID.OpenSUSE),
37new Tuple<string, OSID>("osx", OSID.OSX),
38new Tuple<string, OSID>("rhel", OSID.RHEL),
39new Tuple<string, OSID>("ubuntu", OSID.Ubuntu),
43new Tuple<string, OSID>("win81", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2),
44new Tuple<string, OSID>("win7", OSID.Windows_7 | OSID.Windows_Server_2008_R2),
53new Tuple<string, OSID>("Microsoft Azure Linux", OSID.AzureLinux),
54new Tuple<string, OSID>("Microsoft Windows 6.0.", OSID.Windows_Server_2008),
55new Tuple<string, OSID>("Microsoft Windows 6.1.", OSID.Windows_7 | OSID.Windows_Server_2008_R2),
56new Tuple<string, OSID>("Microsoft Windows 6.2.", OSID.Windows_8 | OSID.Windows_Server_2012),
57new Tuple<string, OSID>("Microsoft Windows 6.3.", OSID.Windows_8_1 | OSID.Windows_Server_2012_R2),
58new Tuple<string, OSID>("Microsoft Windows 10.", OSID.Windows_10 | OSID.Windows_Server_2016),
59new Tuple<string, OSID>(MicrosoftWindowsPhoneName, OSID.WindowsPhone),
60new Tuple<string, OSID>(MicrosoftWindowsName, OSID.AnyWindows), // reserved for "Don't know which version"
61new Tuple<string, OSID>("Darwin", OSID.OSX),
Microsoft.AspNetCore.Components (1)
Microsoft.AspNetCore.Components.Endpoints (1)
Microsoft.AspNetCore.Components.Server (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 (37)
237var environmentType = new Tuple<string, Type>(null, typeof(Environment));
238var directoryType = new Tuple<string, Type>(null, typeof(Directory));
239var fileType = new Tuple<string, Type>(null, typeof(File));
240var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
241var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform));
282availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
283availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
284availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
287availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions)));
288availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte)));
289availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char)));
290availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert)));
291availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime)));
292availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset)));
293availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal)));
294availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double)));
295availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum)));
296availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid)));
297availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16)));
298availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32)));
299availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64)));
300availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path)));
301availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math)));
302availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16)));
303availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32)));
304availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
305availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte)));
306availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single)));
307availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String)));
308availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer)));
309availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan)));
310availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex)));
311availableStaticMethods.TryAdd("System.Uri", new Tuple<string, Type>(null, typeof(Uri)));
312availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder)));
313availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version)));
314availableStaticMethods.TryAdd("Microsoft.Build.Utilities.ToolLocationHelper", new Tuple<string, Type>("Microsoft.Build.Utilities.ToolLocationHelper, Microsoft.Build.Utilities.Core, Version=" + MSBuildConstants.CurrentAssemblyVersion + ", Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", null));
318var operatingSystemType = new Tuple<string, Type>(null, typeof(OperatingSystem));
Microsoft.Build.Framework (1)
Microsoft.Build.Tasks.Core (6)
ResolveSDKReference.cs (5)
568LogErrorOrWarning(new Tuple<string, object[]>("ResolveSDKReference.SDKReferenceIncorrectFormat", [referenceItem.ItemSpec]));
620LogErrorOrWarning(new Tuple<string, object[]>("ResolveSDKReference.CouldNotResolveSDK", [reference.ReferenceItem.ItemSpec]));
986ResolutionErrors.Add(new Tuple<string, object[]>(resourceId, parameters));
994ResolutionWarnings.Add(new Tuple<string, object[]>(resourceId, parameters));
1547StatusMessages.Add(new Tuple<string, object[]>(resource, parameters));
Microsoft.Build.Tasks.Git (1)
Microsoft.CodeAnalysis.CSharp (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.Build.Tasks (1)
Microsoft.NET.HostModel (5)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (5)
206resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
210resTypes.Add(new Tuple<ResType, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
220resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key, nameTable)));
224resNames.Add(new Tuple<ResName, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
234resLanguages.Add(new Tuple<ResLanguage, ObjectDataBuilder.Reservation>(res.Value, IMAGE_RESOURCE_DIRECTORY_ENTRY.Write(ref dataBuilder, res.Key)));
Microsoft.TestPlatform.CrossPlatEngine (5)
NuGet.Commands (1)
NuGet.Common (1)
NuGet.Configuration (1)
NuGet.DependencyResolver.Core (1)
NuGet.Packaging (5)
NuGet.ProjectModel (2)
NuGet.Protocol (46)
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.ServiceModel.Primitives (4)
Internals\System\Runtime\Diagnostics\EtwDiagnosticTrace.cs (4)
77new Tuple<string, string> (DiagnosticStrings.ExceptionTypeTag, XmlEncode(exception.GetType().AssemblyQualifiedName)),
78new Tuple<string, string> (DiagnosticStrings.MessageTag, XmlEncode(exception.Message)),
79new Tuple<string, string> (DiagnosticStrings.StackTraceTag, XmlEncode(StackTraceString(exception))), // Stack trace is sometimes null
80new Tuple<string, string> (DiagnosticStrings.ExceptionStringTag, XmlEncode(exception.ToString())),
System.Text.Json (1)
vstest.console (1)
vstest.console.arm64 (1)
694 references to Tuple
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);
dotnet-svcutil-lib.Tests (1)
GenerateDocumentationAndConfigFiles (2)
ILCompiler.Compiler (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>();
200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>();
201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes)
228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames)
255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
ILCompiler.DependencyAnalysisFramework (9)
ILCompiler.ReadyToRun (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>();
200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>();
201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes)
228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames)
255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
Infrastructure.Common (6)
Microsoft.AspNetCore.Components (6)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.Server (4)
Microsoft.Build (25)
Resources\Constants.cs (14)
122private static ConcurrentDictionary<string, Tuple<string, Type>> s_availableStaticMethods;
145internal static bool TryAdd(string key, Tuple<string, Type> value)
157public static bool TryAdd(string typeFullName, string simpleMethodName, Tuple<string, Type> typeInformation)
165internal static bool TryGetValue(string key, out Tuple<string, Type> value)
173internal static Tuple<string, Type> GetValue(string key)
175Tuple<string, Type> typeInformation;
190internal static Tuple<string, Type> GetTypeInformationFromTypeCache(string typeFullName, string simpleMethodName)
234var availableStaticMethods = new ConcurrentDictionary<string, Tuple<string, Type>>(StringComparer.OrdinalIgnoreCase);
237var environmentType = new Tuple<string, Type>(null, typeof(Environment));
238var directoryType = new Tuple<string, Type>(null, typeof(Directory));
239var fileType = new Tuple<string, Type>(null, typeof(File));
240var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
241var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform));
318var operatingSystemType = new Tuple<string, Type>(null, typeof(OperatingSystem));
Microsoft.Build.Framework (1)
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.Tasks.Git (4)
Microsoft.Build.Utilities.Core (4)
ToolLocationHelper.cs (4)
423public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string targetPlatformIdentifier, Version targetPlatformVersion)
435public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion)
448public static IDictionary<string, Tuple<string, string>> GetPlatformExtensionSDKLocationsAndVersions(string[] diskRoots, string[] multiPlatformDiskRoots, string registryRoot, string targetPlatformIdentifier, Version targetPlatformVersion)
450var extensionSDKsAndVersions = new Dictionary<string, Tuple<string, string>>(StringComparer.OrdinalIgnoreCase);
Microsoft.CodeAnalysis.Analyzers (2)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CSharp (18)
Symbols\Source\SourceAssemblySymbol.cs (7)
2133ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> result = null;
2197private ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> _lazyInternalsVisibleToMap;
2275ref ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>>> lazyInternalsVisibleToMap)
2309new ConcurrentDictionary<string, ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>>(StringComparer.OrdinalIgnoreCase), null);
2316Tuple<Location, string> locationAndValue = null;
2329ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, string>> keys = null;
2336keys = new ConcurrentDictionary<ImmutableArray<byte>, Tuple<Location, String>>();
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (5)
24private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> _lazyDeclaredBases;
255internal Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> GetDeclaredBases(ConsList<TypeSymbol> basesBeingResolved)
280private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeDeclaredBases(ConsList<TypeSymbol> basesBeingResolved, BindingDiagnosticBag diagnostics)
300Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> one = MakeOneDeclaredBases(newBasesBeingResolved, decl, diagnostics);
493private Tuple<NamedTypeSymbol, ImmutableArray<NamedTypeSymbol>> MakeOneDeclaredBases(ConsList<TypeSymbol> newBasesBeingResolved, SingleTypeDeclaration decl, BindingDiagnosticBag diagnostics)
Microsoft.CodeAnalysis.Features (2)
Microsoft.CodeAnalysis.Razor.Compiler (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.Diagnostics.NETCore.Client (3)
Microsoft.DotNet.Build.Tasks.Packaging (2)
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.Build.Tasks (6)
Microsoft.NET.HostModel (10)
src\runtime\src\coreclr\tools\Common\Compiler\Win32Resources\ResourceData.cs (10)
199List<Tuple<ResType, ObjectDataBuilder.Reservation>> resTypes = new List<Tuple<ResType, ObjectDataBuilder.Reservation>>();
200List<Tuple<ResName, ObjectDataBuilder.Reservation>> resNames = new List<Tuple<ResName, ObjectDataBuilder.Reservation>>();
201List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>> resLanguages = new List<Tuple<ResLanguage, ObjectDataBuilder.Reservation>>();
213foreach (Tuple<ResType, ObjectDataBuilder.Reservation> type in resTypes)
228foreach (Tuple<ResName, ObjectDataBuilder.Reservation> type in resNames)
255foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
263foreach (Tuple<ResLanguage, ObjectDataBuilder.Reservation> language in resLanguages)
Microsoft.TestPlatform.CrossPlatEngine (29)
Microsoft.VisualStudio.TestPlatform.Common (2)
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks (2)
NuGet.Commands (10)
NuGet.Common (3)
NuGet.Configuration (2)
NuGet.Credentials (1)
NuGet.DependencyResolver.Core (4)
NuGet.PackageManagement (1)
NuGet.Packaging (11)
NuGet.ProjectModel (2)
NuGet.Protocol (60)
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)
Roslyn.Diagnostics.Analyzers (2)
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 (9)
System\Numerics\Tensors\netcore\Tensor.cs (6)
4795TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), destination);
4808TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), in destination);
4819TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), destination);
4831TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), in destination);
4842TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), destination);
4854TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), in destination);
System.Private.CoreLib (16)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TupleExtensions.cs (9)
33this Tuple<T1, T2> value,
138this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>> value,
292this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>> value,
475this Tuple<T1, T2> value)
546this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>> value)
624this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>> value)
706public static Tuple<T1, T2>
777public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9>>
855public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16>>>
System.Runtime (1)
System.Runtime.Caching (2)
System.Runtime.Serialization.Schema (1)
System.ServiceModel.Federation (6)
System.ServiceModel.Primitives (19)
System.Text.Json (7)
System\Text\Json\Serialization\Metadata\FSharpCoreReflectionProxy.cs (2)
298public Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap> CreateFSharpMapConstructor<TFSharpMap, TKey, TValue>()
301return CreateDelegate<Func<IEnumerable<Tuple<TKey, TValue>>, TFSharpMap>>(EnsureMemberExists(_fsharpMapCtor, "Microsoft.FSharp.Collections.MapModule.OfSeq<TKey, TValue>(IEnumerable<Tuple<TKey, TValue>> source)").MakeGenericMethod(typeof(TKey), typeof(TValue)));
System.Threading.Tasks.Dataflow (45)
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; } }
vstest.console (3)
vstest.console.arm64 (3)