2 types derived from Tuple
Microsoft.Maui.Controls (1)
System.Xaml (1)
90 instantiations of Tuple
dotnet-svcutil-lib (2)
Microsoft.AspNetCore.Owin (1)
Microsoft.Build.Engine.UnitTests (49)
FileMatcher_Tests.cs (49)
525new Tuple<string, string, bool>("a", "a", true),
526new Tuple<string, string, bool>("a", "", false),
527new Tuple<string, string, bool>("", "a", false),
530new Tuple<string, string, bool>("šđčćž", "šđčćž", true),
533new Tuple<string, string, bool>("abc", "*bc", true),
534new Tuple<string, string, bool>("abc", "a*c", true),
535new Tuple<string, string, bool>("abc", "ab*", true),
536new Tuple<string, string, bool>("ab", "*ab", true),
537new Tuple<string, string, bool>("ab", "a*b", true),
538new Tuple<string, string, bool>("ab", "ab*", true),
539new Tuple<string, string, bool>("aba", "ab*ba", false),
540new Tuple<string, string, bool>("", "*", true),
543new Tuple<string, string, bool>("abc", "?bc", true),
544new Tuple<string, string, bool>("abc", "a?c", true),
545new Tuple<string, string, bool>("abc", "ab?", true),
546new Tuple<string, string, bool>("ab", "?ab", false),
547new Tuple<string, string, bool>("ab", "a?b", false),
548new Tuple<string, string, bool>("ab", "ab?", false),
549new Tuple<string, string, bool>("", "?", false),
552new Tuple<string, string, bool>("a", "*?", true),
553new Tuple<string, string, bool>("a", "?*", true),
554new Tuple<string, string, bool>("ab", "*?", true),
555new Tuple<string, string, bool>("ab", "?*", true),
556new Tuple<string, string, bool>("abc", "*?", true),
557new Tuple<string, string, bool>("abc", "?*", true),
560new Tuple<string, string, bool>("a", "??", false),
561new Tuple<string, string, bool>("ab", "?*?", true),
562new Tuple<string, string, bool>("ab", "*?*?*", true),
563new Tuple<string, string, bool>("abc", "?**?*?", true),
564new Tuple<string, string, bool>("abc", "?**?*c?", false),
565new Tuple<string, string, bool>("abcd", "?b*??", true),
566new Tuple<string, string, bool>("abcd", "?a*??", false),
567new Tuple<string, string, bool>("abcd", "?**?c?", true),
568new Tuple<string, string, bool>("abcd", "?**?d?", false),
569new Tuple<string, string, bool>("abcde", "?*b*?*d*?", true),
572new Tuple<string, string, bool>("?", "?", true),
573new Tuple<string, string, bool>("?a", "?a", true),
574new Tuple<string, string, bool>("a?", "a?", true),
575new Tuple<string, string, bool>("a?b", "a?", false),
576new Tuple<string, string, bool>("a?ab", "a?aab", false),
577new Tuple<string, string, bool>("aa?bbbc?d", "aa?bbc?dd", false),
580new Tuple<string, string, bool>("*", "*", true),
581new Tuple<string, string, bool>("*a", "*a", true),
582new Tuple<string, string, bool>("a*", "a*", true),
583new Tuple<string, string, bool>("a*b", "a*", true),
584new Tuple<string, string, bool>("a*ab", "a*aab", false),
585new Tuple<string, string, bool>("a*abab", "a*b", true),
586new Tuple<string, string, bool>("aa*bbbc*d", "aa*bbc*dd", false),
587new Tuple<string, string, bool>("aa*bbbc*d", "a*bbc*d", true)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.UnitTests (33)
Collections\ImmutableSetTest.cs (33)
298new SetTriad(SetWith<int>(), Array.Empty<int>(), true),
299new SetTriad(SetWith<int>(5), new int[] { 5 }, true),
300new SetTriad(SetWith<int>(5), new int[] { 5, 5 }, true),
301new SetTriad(SetWith<int>(5, 8), new int[] { 5, 5 }, false),
302new SetTriad(SetWith<int>(5, 8), new int[] { 5, 7 }, false),
303new SetTriad(SetWith<int>(5, 8), new int[] { 5, 8 }, true),
304new SetTriad(SetWith<int>(5), Array.Empty<int>(), false),
305new SetTriad(SetWith<int>(), new int[] { 5 }, false),
306new SetTriad(SetWith<int>(5, 8), new int[] { 5 }, false),
307new SetTriad(SetWith<int>(5), new int[] { 5, 8 }, false),
308new SetTriad(SetWith<int>(5, 8), SetWith<int>(5, 8), true),
316new SetTriad(Array.Empty<int>(), Array.Empty<int>(), false),
317new SetTriad(new int[] { 1 }, Array.Empty<int>(), false),
318new SetTriad(new int[] { 1 }, new int[] { 2 }, false),
319new SetTriad(new int[] { 1 }, new int[] { 2, 3 }, false),
320new SetTriad(new int[] { 1 }, new int[] { 1, 2 }, true),
321new SetTriad(Array.Empty<int>(), new int[] { 1 }, true),
329new SetTriad(Array.Empty<int>(), Array.Empty<int>(), true),
330new SetTriad(new int[] { 1 }, new int[] { 1 }, true),
331new SetTriad(new int[] { 1, 2 }, new int[] { 1, 2 }, true),
332new SetTriad(new int[] { 1 }, Array.Empty<int>(), false),
333new SetTriad(new int[] { 1 }, new int[] { 2 }, false),
334new SetTriad(new int[] { 1 }, new int[] { 2, 3 }, false),
347new SetTriad(Array.Empty<int>(), Array.Empty<int>(), false),
348new SetTriad(Array.Empty<int>(), new int[] { 1 }, false),
349new SetTriad(new int[] { 1 }, new int[] { 2 }, false),
350new SetTriad(new int[] { 1 }, new int[] { 2, 3 }, false),
351new SetTriad(new int[] { 1, 2 }, new int[] { 3 }, false),
352new SetTriad(new int[] { 1 }, new int[] { 1, 2 }, true),
353new SetTriad(new int[] { 1, 2 }, new int[] { 1 }, true),
354new SetTriad(new int[] { 1 }, new int[] { 1 }, true),
355new SetTriad(new int[] { 1, 2 }, new int[] { 2, 3, 4 }, true),
384return new Tuple<IEnumerable<T>, IEnumerable<T>, bool>(scenario.Item2, scenario.Item1, scenario.Item3);
Microsoft.ML.TimeSeries (1)
System.Private.CoreLib (1)
xunit.assert (2)
184 references to Tuple
dotnet-svcutil-lib (4)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.Diagnostics (6)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (6)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Owin (5)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (17)
Features\UnifiedSuggestions\UnifiedSuggestedActionsSource.cs (17)
22using CodeFixGroupKey = System.Tuple<Microsoft.CodeAnalysis.Diagnostics.DiagnosticData, Microsoft.CodeAnalysis.CodeActions.CodeActionPriority, Microsoft.CodeAnalysis.CodeActions.CodeActionPriority?>;
71var map = ImmutableDictionary.CreateBuilder<CodeFixGroupKey, IList<IUnifiedSuggestedAction>>();
72using var _ = ArrayBuilder<CodeFixGroupKey>.GetInstance(out var order);
89IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map,
90ArrayBuilder<CodeFixGroupKey> order,
100IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map,
101ArrayBuilder<CodeFixGroupKey> order,
130IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map,
131ArrayBuilder<CodeFixGroupKey> order,
178IDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map,
179ArrayBuilder<CodeFixGroupKey> order)
181var groupKey = GetGroupKey(fix);
192static CodeFixGroupKey GetGroupKey(CodeFix fix)
281ImmutableDictionary<CodeFixGroupKey, IList<IUnifiedSuggestedAction>> map,
282ImmutableArray<CodeFixGroupKey> order,
289foreach (var groupKey in order)
390CodeFixGroupKey groupKey,
Microsoft.CodeAnalysis.UnitTests (13)
Collections\ImmutableSetTest.cs (13)
16using SetTriad = System.Tuple<System.Collections.Generic.IEnumerable<int>, System.Collections.Generic.IEnumerable<int>, bool>;
294private IEnumerable<SetTriad> GetSetEqualsScenarios()
296return new List<SetTriad>
312private static IEnumerable<SetTriad> GetIsProperSubsetOfScenarios()
314return new List<SetTriad>
325private static IEnumerable<SetTriad> GetIsSubsetOfScenarios()
327var results = new List<SetTriad>
343private static IEnumerable<SetTriad> GetOverlapsScenarios()
345return new List<SetTriad>
359private void SetCompareTestHelper<T>(Func<System.Collections.Immutable.IImmutableSet<T>, Func<IEnumerable<T>, bool>> operation, Func<ISet<T>, Func<IEnumerable<T>, bool>> baselineOperation, IEnumerable<Tuple<IEnumerable<T>, IEnumerable<T>, bool>> scenarios)
364foreach (var scenario in scenarios)
382private static Tuple<IEnumerable<T>, IEnumerable<T>, bool> Flip<T>(Tuple<IEnumerable<T>, IEnumerable<T>, bool> scenario)
Microsoft.CodeAnalysis.Workspaces (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (34)
UtilityTest\IntervalTreeTests.cs (34)
18private protected readonly struct TupleIntrospector<T> : IIntervalIntrospector<Tuple<int, int, T>>
20public TextSpan GetSpan(Tuple<int, int, T> value)
24private IEnumerable<IIntervalTree<Tuple<int, int, string>>> CreateTrees(params Tuple<int, int, string>[] values)
25=> CreateTrees((IEnumerable<Tuple<int, int, string>>)values);
27private protected abstract IEnumerable<IIntervalTree<Tuple<int, int, string>>> CreateTrees(IEnumerable<Tuple<int, int, string>> values);
29private protected abstract ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length);
30private protected abstract ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length);
31private protected abstract bool HasIntervalThatIntersectsWith(IIntervalTree<Tuple<int, int, string>> tree, int position);
310private void TestOverlapsAndIntersects(IList<Tuple<int, int, string>> spans)
351private protected override IEnumerable<IIntervalTree<Tuple<int, int, string>>> CreateTrees(IEnumerable<Tuple<int, int, string>> values)
356private protected override bool HasIntervalThatIntersectsWith(IIntervalTree<Tuple<int, int, string>> tree, int position)
358return ((MutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.HasIntervalThatIntersectsWith(position, new TupleIntrospector<string>());
361private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
363return ((MutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.GetIntervalsThatIntersectWith(start, length, new TupleIntrospector<string>());
366private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
368return ((MutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.GetIntervalsThatOverlapWith(start, length, new TupleIntrospector<string>());
374private protected override IEnumerable<IIntervalTree<Tuple<int, int, string>>> CreateTrees(IEnumerable<Tuple<int, int, string>> values)
376yield return ImmutableIntervalTree<Tuple<int, int, string>>.CreateFromUnsorted(new TupleIntrospector<string>(), [.. values]);
379private protected override bool HasIntervalThatIntersectsWith(IIntervalTree<Tuple<int, int, string>> tree, int position)
381return ((ImmutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.HasIntervalThatIntersectsWith(position, new TupleIntrospector<string>());
384private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatIntersectWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
386return ((ImmutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.GetIntervalsThatIntersectWith(start, length, new TupleIntrospector<string>());
389private protected override ImmutableArray<Tuple<int, int, string>> GetIntervalsThatOverlapWith(IIntervalTree<Tuple<int, int, string>> tree, int start, int length)
391return ((ImmutableIntervalTree<Tuple<int, int, string>>)tree).Algorithms.GetIntervalsThatOverlapWith(start, length, new TupleIntrospector<string>());
Microsoft.ML.Data (1)
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)
Microsoft.VisualStudio.LanguageServices (4)
mscorlib (1)
netstandard (1)
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.Private.CoreLib (13)
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\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>>>
System.Runtime (1)
System.Threading.Tasks.Dataflow (39)
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; } }
xunit.assert (3)