2 types derived from Tuple
Microsoft.Maui.Controls (1)
MessagingCenter.cs (1)
31 class Sender : Tuple<string, Type, Type>
System.Xaml (1)
System\Xaml\Schema\ReferenceEqualityComparer.cs (1)
28internal class ReferenceEqualityTuple<T1, T2, T3> : Tuple<T1, T2, T3>
7 instantiations of Tuple
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (2)
768tuple = new Tuple<XmlSchemaType, string, object>(xmlType, originalString, typedValue); 816tuple = new Tuple<XmlSchemaType, string, object>(xmlType, originalString, typedValue);
Microsoft.CodeAnalysis (1)
StrongName\StrongNameKeys.cs (1)
159cachedKeyPair = new Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>(keyPair, publicKey, privateKey);
Microsoft.ML.TimeSeries (1)
RootCauseAnalyzer.cs (1)
125return new Tuple<PointTree, PointTree, Dictionary<Dictionary<string, Object>, TimeSeriesPoint>>(pointTree, anomalyTree, dimPointMapping);
Microsoft.VisualStudio.TestPlatform.ObjectModel (1)
Nuget.Frameworks\NuGetFrameworkFactory.cs (1)
481return new Tuple<string, string?, string>(identifier, version, profile);
NuGet.Frameworks (1)
NuGetFrameworkFactory.cs (1)
478return new Tuple<string, string?, string>(identifier, version, profile);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (1)
36return new Tuple<T1, T2, T3>(item1, item2, item3);
116 references to Tuple
dotnet-svcutil-lib (4)
FrameworkFork\Microsoft.Xml\Xml\Core\XsdValidatingReaderAsync.cs (4)
182var tuple_10 = await InternalReadElementContentAsObjectTupleAsync(false).ConfigureAwait(false); 739var tuple_13 = await InternalReadElementContentAsObjectTupleAsync(unwrapTypedValue).ConfigureAwait(false); 744private async Task<Tuple<XmlSchemaType, string, object>> InternalReadElementContentAsObjectTupleAsync(bool unwrapTypedValue) 746Tuple<XmlSchemaType, string, object> tuple;
GenerateDocumentationAndConfigFiles (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.AspNetCore.Cors (1)
Infrastructure\CorsMiddleware.cs (1)
195var (middleware, context, result) = (Tuple<CorsMiddleware, HttpContext, CorsResult>)state;
Microsoft.AspNetCore.Diagnostics (6)
src\aspnetcore\src\Shared\Diagnostics\AttributeValue.cs (3)
23public static AttributeValue FromTuple(Tuple<string, object, bool> value) 28public static AttributeValue FromTuple(Tuple<string, string, bool> value) 33public static implicit operator AttributeValue(Tuple<string, object, bool> value)
src\aspnetcore\src\Shared\RazorViews\AttributeValue.cs (3)
23public static AttributeValue FromTuple(Tuple<string, object, bool> value) 28public static AttributeValue FromTuple(Tuple<string, string, bool> value) 33public static implicit operator AttributeValue(Tuple<string, object, bool> value)
Microsoft.AspNetCore.Hosting (3)
src\aspnetcore\src\Shared\RazorViews\AttributeValue.cs (3)
23public static AttributeValue FromTuple(Tuple<string, object, bool> value) 28public static AttributeValue FromTuple(Tuple<string, string, bool> value) 33public static implicit operator AttributeValue(Tuple<string, object, bool> value)
Microsoft.CodeAnalysis (2)
StrongName\StrongNameKeys.cs (2)
125private static Tuple<ImmutableArray<byte>, ImmutableArray<byte>, RSAParameters?>? s_lastSeenKeyPair; 135var cachedKeyPair = s_lastSeenKeyPair;
Microsoft.CodeAnalysis.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.CodeAnalysis.AnalyzerUtilities (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.CodeAnalysis.CodeStyle (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.CodeAnalysis.ResxSourceGenerator (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.CodeAnalysis.Workspaces (5)
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (2)
419IEnumerable<Tuple<string, int, TextSpan>> renameStringsAndPositions, 423foreach (var renameStringAndPosition in renameStringsAndPositions)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
Microsoft.ML.Data (1)
DataLoadSave\Binary\BinarySaver.cs (1)
274var metadataInfos = new List<Tuple<string, IValueCodec, CompressionKind>>();
Microsoft.ML.TimeSeries (2)
RootCauseAnalyzer.cs (2)
48Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> pointInfo = GetPointsInfo(src, dimensionInfo); 94private Tuple<PointTree, PointTree, Dictionary<Dictionary<string, object>, TimeSeriesPoint>> GetPointsInfo(RootCauseLocalizationInput src, DimensionInfo dimensionInfo)
Microsoft.ML.TorchSharp (2)
AutoFormerV2\ObjectDetectionMetrics.cs (2)
182List<Tuple<int, int, float>> tupleList = new(); // annotaIndex, detectIndex, iouScore 207foreach (var tuple in tupleList)
Microsoft.TemplateEngine.Cli (1)
TabularOutput\TabularOutput.cs (1)
18private readonly List<Tuple<int, bool, IComparer<string>>> _ordering = new();
Microsoft.VisualStudio.TestPlatform.ObjectModel (2)
Nuget.Frameworks\NuGetFrameworkFactory.cs (2)
279var parts = RawParse(folderName); 410private static Tuple<string, string?, string>? RawParse(string s)
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
1201[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,,>))]
netstandard (1)
netstandard.cs (1)
2202[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,,>))]
NuGet.Commands (3)
RestoreCommand\ProjectRestoreCommand.cs (1)
45public async Task<Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph>> TryRestoreAsync(LibraryRange projectRange,
RestoreCommand\RestoreCommand.cs (2)
1861Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> result = null; 1944Tuple<bool, List<RestoreTargetGraph>, RuntimeGraph> compatibilityResult = null;
NuGet.Frameworks (2)
NuGetFrameworkFactory.cs (2)
276var parts = RawParse(folderName); 407private static Tuple<string, string?, string>? RawParse(string s)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (3)
55/// Stored as a <see cref="Tuple{T1, T2, T3}"/> instead of a <see cref="ValueTuple{T1, T2, T3}"/> so we don't have 58private static Tuple<ImmutableArray<AbstractFormattingRule>, SyntaxFormattingOptions, ChainedFormattingRules>? s_lastRulesAndOptions; 77var lastRulesAndOptions = s_lastRulesAndOptions;
System.ComponentModel.Composition.Registration (6)
System\ComponentModel\Composition\Registration\PartBuilder.cs (6)
28private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>> _propertyExports; 29private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>> _propertyImports; 40_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type>>(); 41_propertyImports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type>>(); 430foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ImportBuilder>, Type> importSpecification in _propertyImports) 470foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportBuilder>, Type> exportSpecification in _propertyExports)
System.Composition.Convention (3)
System\Composition\Convention\PartConventionBuilder.cs (3)
33private readonly List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>> _propertyExports; 44_propertyExports = new List<Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type>>(); 713foreach (Tuple<Predicate<PropertyInfo>, Action<PropertyInfo, ExportConventionBuilder>, Type> exportSpecification in _propertyExports)
System.Private.CoreLib (13)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Tuple.cs (3)
34public static Tuple<T1, T2, T3> Create<T1, T2, T3>(T1 item1, T2 item2, T3 item3) 375if (other is not Tuple<T1, T2, T3> objTuple) 397if (other is not Tuple<T1, T2, T3> objTuple)
src\runtime\src\libraries\System.Private.CoreLib\src\System\TupleExtensions.cs (9)
45this Tuple<T1, T2, T3> value, 157this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10>> value, 318this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16, T17>>> value, 485this Tuple<T1, T2, T3> value) 557this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10>> value) 636this Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16, T17>>> value) 716public static Tuple<T1, T2, T3> 788public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10>> 867public static Tuple<T1, T2, T3, T4, T5, T6, T7, Tuple<T8, T9, T10, T11, T12, T13, T14, Tuple<T15, T16, T17>>>
src\runtime\src\libraries\System.Private.CoreLib\src\System\TupleSlim.cs (1)
20/// <summary>Simple alternative to <see cref="Tuple{T1, T2, T3}"/> for use in corelib.</summary>
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
867[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Tuple<,,>))]
System.Threading.Tasks.Dataflow (39)
Base\DataflowBlock.cs (2)
2071Tuple<Action<T>, T, int> actionResultBranch = (Tuple<Action<T>, T, int>)state!;
Blocks\BatchedJoinBlock.cs (18)
272public sealed class BatchedJoinBlock<T1, T2, T3> : IReceivableSourceBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>>, IDebuggerDisplay 285private readonly SourceCore<Tuple<IList<T1>, IList<T2>, IList<T3>>> _source; 315_source = new SourceCore<Tuple<IList<T1>, IList<T2>, IList<T3>>>( 378public IDisposable LinkTo(ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target, DataflowLinkOptions linkOptions) 384public bool TryReceive(Predicate<Tuple<IList<T1>, IList<T2>, IList<T3>>>? filter, [NotNullWhen(true)] out Tuple<IList<T1>, IList<T2>, IList<T3>>? item) 390public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<IList<T1>, IList<T2>, IList<T3>>>? items) { return _source.TryReceiveAll(out items); } 427Tuple<IList<T1>, IList<T2>, IList<T3>>? ISourceBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ConsumeMessage( 428DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target, out bool messageConsumed) 434bool ISourceBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ReserveMessage( 435DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target) 441void ISourceBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>>.ReleaseReservation( 442DataflowMessageHeader messageHeader, ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>> target) 476private readonly SourceCore<Tuple<IList<T1>, IList<T2>, IList<T3>>>.DebuggingInformation _sourceDebuggingInformation; 488public IEnumerable<Tuple<IList<T1>, IList<T2>, IList<T3>>> OutputQueue { get { return _sourceDebuggingInformation.OutputQueue; } } 514public TargetRegistry<Tuple<IList<T1>, IList<T2>, IList<T3>>> LinkedTargets { get { return _sourceDebuggingInformation.LinkedTargets; } } 516public ITargetBlock<Tuple<IList<T1>, IList<T2>, IList<T3>>>? NextMessageReservedFor { get { return _sourceDebuggingInformation.NextMessageReservedFor; } }
Blocks\JoinBlock.cs (19)
250public sealed class JoinBlock<T1, T2, T3> : IReceivableSourceBlock<Tuple<T1, T2, T3>>, IDebuggerDisplay 255private readonly SourceCore<Tuple<T1, T2, T3>> _source; 279Action<ISourceBlock<Tuple<T1, T2, T3>>, int>? onItemsRemoved = null; 283_source = new SourceCore<Tuple<T1, T2, T3>>(this, dataflowBlockOptions, 329public IDisposable LinkTo(ITargetBlock<Tuple<T1, T2, T3>> target, DataflowLinkOptions linkOptions) 335public bool TryReceive(Predicate<Tuple<T1, T2, T3>>? filter, [NotNullWhen(true)] out Tuple<T1, T2, T3>? item) 341public bool TryReceiveAll([NotNullWhen(true)] out IList<Tuple<T1, T2, T3>>? items) { return _source.TryReceiveAll(out items); } 387Tuple<T1, T2, T3>? ISourceBlock<Tuple<T1, T2, T3>>.ConsumeMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target, out bool messageConsumed) 393bool ISourceBlock<Tuple<T1, T2, T3>>.ReserveMessage(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target) 399void ISourceBlock<Tuple<T1, T2, T3>>.ReleaseReservation(DataflowMessageHeader messageHeader, ITargetBlock<Tuple<T1, T2, T3>> target) 423private readonly SourceCore<Tuple<T1, T2, T3>>.DebuggingInformation _sourceDebuggingInformation; 435public IEnumerable<Tuple<T1, T2, T3>> OutputQueue { get { return _sourceDebuggingInformation.OutputQueue; } } 461public TargetRegistry<Tuple<T1, T2, T3>> LinkedTargets { get { return _sourceDebuggingInformation.LinkedTargets; } } 463public ITargetBlock<Tuple<T1, T2, T3>>? NextMessageReservedFor { get { return _sourceDebuggingInformation.NextMessageReservedFor; } }