5 types derived from Tuple
PresentationCore (1)
PresentationFramework (3)
System.Xaml (1)
271 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)
ILAssembler (1)
ILCompiler.Compiler (5)
parent\parent\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)
parent\parent\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.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.Build (49)
Construction\Solution\SolutionProjectGenerator.cs (9)
108new Tuple<string, string>("Configuration", null), // This is the solution configuration in a metaproject, and project configuration on an actual project
109new Tuple<string, string>("Platform", null), // This is the solution platform in a metaproject, and project platform on an actual project
110new Tuple<string, string>("BuildingSolutionFile", "true"),
111new Tuple<string, string>("CurrentSolutionConfigurationContents", null),
112new Tuple<string, string>("SolutionDir", null),
113new Tuple<string, string>("SolutionExt", null),
114new Tuple<string, string>("SolutionFileName", null),
115new Tuple<string, string>("SolutionName", null),
116new Tuple<string, string>(SolutionPathPropertyName, null)
Resources\Constants.cs (37)
316var environmentType = new Tuple<string, Type>(null, typeof(Environment));
317var directoryType = new Tuple<string, Type>(null, typeof(Directory));
318var fileType = new Tuple<string, Type>(null, typeof(File));
319var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
320var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform));
364availableStaticMethods.TryAdd("System.Globalization.CultureInfo::GetCultureInfo", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
365availableStaticMethods.TryAdd("System.Globalization.CultureInfo::new", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
366availableStaticMethods.TryAdd("System.Globalization.CultureInfo::CurrentUICulture", new Tuple<string, Type>(null, typeof(CultureInfo))); // user request
369availableStaticMethods.TryAdd("MSBuild", new Tuple<string, Type>(null, typeof(IntrinsicFunctions)));
370availableStaticMethods.TryAdd("System.Byte", new Tuple<string, Type>(null, typeof(Byte)));
371availableStaticMethods.TryAdd("System.Char", new Tuple<string, Type>(null, typeof(Char)));
372availableStaticMethods.TryAdd("System.Convert", new Tuple<string, Type>(null, typeof(Convert)));
373availableStaticMethods.TryAdd("System.DateTime", new Tuple<string, Type>(null, typeof(DateTime)));
374availableStaticMethods.TryAdd("System.DateTimeOffset", new Tuple<string, Type>(null, typeof(DateTimeOffset)));
375availableStaticMethods.TryAdd("System.Decimal", new Tuple<string, Type>(null, typeof(Decimal)));
376availableStaticMethods.TryAdd("System.Double", new Tuple<string, Type>(null, typeof(Double)));
377availableStaticMethods.TryAdd("System.Enum", new Tuple<string, Type>(null, typeof(Enum)));
378availableStaticMethods.TryAdd("System.Guid", new Tuple<string, Type>(null, typeof(Guid)));
379availableStaticMethods.TryAdd("System.Int16", new Tuple<string, Type>(null, typeof(Int16)));
380availableStaticMethods.TryAdd("System.Int32", new Tuple<string, Type>(null, typeof(Int32)));
381availableStaticMethods.TryAdd("System.Int64", new Tuple<string, Type>(null, typeof(Int64)));
382availableStaticMethods.TryAdd("System.IO.Path", new Tuple<string, Type>(null, typeof(Path)));
383availableStaticMethods.TryAdd("System.Math", new Tuple<string, Type>(null, typeof(Math)));
384availableStaticMethods.TryAdd("System.UInt16", new Tuple<string, Type>(null, typeof(UInt16)));
385availableStaticMethods.TryAdd("System.UInt32", new Tuple<string, Type>(null, typeof(UInt32)));
386availableStaticMethods.TryAdd("System.UInt64", new Tuple<string, Type>(null, typeof(UInt64)));
387availableStaticMethods.TryAdd("System.SByte", new Tuple<string, Type>(null, typeof(SByte)));
388availableStaticMethods.TryAdd("System.Single", new Tuple<string, Type>(null, typeof(Single)));
389availableStaticMethods.TryAdd("System.String", new Tuple<string, Type>(null, typeof(String)));
390availableStaticMethods.TryAdd("System.StringComparer", new Tuple<string, Type>(null, typeof(StringComparer)));
391availableStaticMethods.TryAdd("System.TimeSpan", new Tuple<string, Type>(null, typeof(TimeSpan)));
392availableStaticMethods.TryAdd("System.Text.RegularExpressions.Regex", new Tuple<string, Type>(null, typeof(Regex)));
393availableStaticMethods.TryAdd("System.Uri", new Tuple<string, Type>(null, typeof(Uri)));
394availableStaticMethods.TryAdd("System.UriBuilder", new Tuple<string, Type>(null, typeof(UriBuilder)));
395availableStaticMethods.TryAdd("System.Version", new Tuple<string, Type>(null, typeof(Version)));
396availableStaticMethods.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));
400var 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 (53)
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)
737 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)
ILAssembler (1)
ILCompiler.Compiler (10)
parent\parent\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)
parent\parent\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.AspNetCore.InternalTesting (4)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.IntegrationTesting (3)
Microsoft.AspNetCore.TestHost (2)
Microsoft.Build (25)
Resources\Constants.cs (14)
123private static ConcurrentDictionary<string, Tuple<string, Type>> s_availableStaticMethods;
146internal static bool TryAdd(string key, Tuple<string, Type> value)
158public static bool TryAdd(string typeFullName, string simpleMethodName, Tuple<string, Type> typeInformation)
166internal static bool TryGetValue(string key, out Tuple<string, Type> value)
174internal static Tuple<string, Type> GetValue(string key)
176Tuple<string, Type> typeInformation;
191internal static Tuple<string, Type> GetTypeInformationFromTypeCache(string typeFullName, string simpleMethodName)
313var availableStaticMethods = new ConcurrentDictionary<string, Tuple<string, Type>>(StringComparer.OrdinalIgnoreCase);
316var environmentType = new Tuple<string, Type>(null, typeof(Environment));
317var directoryType = new Tuple<string, Type>(null, typeof(Directory));
318var fileType = new Tuple<string, Type>(null, typeof(File));
319var runtimeInformationType = new Tuple<string, Type>(null, typeof(RuntimeInformation));
320var osPlatformType = new Tuple<string, Type>(null, typeof(OSPlatform));
400var 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 (24)
Symbols\Source\SourceAssemblySymbol.vb (6)
75Private _lazyInternalsVisibleToMap As ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))
909Dim result As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
979New ConcurrentDictionary(Of String, ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)))(StringComparer.OrdinalIgnoreCase), Nothing)
986Dim locationAndValue As Tuple(Of Location, String) = Nothing
998Dim keys As ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String)) = Nothing
1002keys = New ConcurrentDictionary(Of ImmutableArray(Of Byte), Tuple(Of Location, String))
Syntax\VisualBasicSyntaxTree.ConditionalSymbolsMap.vb (9)
28Private ReadOnly _conditionalsMap As ImmutableDictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer)))
35Private Sub New(conditionalsMap As ImmutableDictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer))))
58Dim conditionalSymbolsMap As ImmutableDictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer))) = symbolsMapBuilder.Build(syntaxRoot, options)
64Private _conditionalsMap As Dictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer)))
67Friend Function Build(root As SyntaxNodeOrToken, options As VisualBasicParseOptions) As ImmutableDictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer)))
68Me._conditionalsMap = New Dictionary(Of String, Stack(Of Tuple(Of InternalSyntax.CConst, Integer)))(IdentifierComparison.Comparer)
90Dim values As Stack(Of Tuple(Of InternalSyntax.CConst, Integer)) = Nothing
93values = New Stack(Of Tuple(Of InternalSyntax.CConst, Integer))
155Dim values As Stack(Of Tuple(Of InternalSyntax.CConst, Integer)) = Nothing
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
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 (14)
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)
4782TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), destination);
4795TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, mode), in destination);
4806TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), destination);
4818TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(digits, MidpointRounding.ToEven), in destination);
4829TensorOperation.Invoke<TensorOperation.Round<T>, T, Tuple<int, MidpointRounding>, T>(x, Tuple.Create(0, mode), destination);
4841TensorOperation.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)