// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT License. // See the LICENSE file in the project root for more information. // This code was generated by a T4 template at 10/05/2020 14:49:21. namespace System.Reactive.Linq { public static partial class Observable { /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the twelfth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Twelfth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, IObservable source12, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (source12 == null) { throw new ArgumentNullException(nameof(source12)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, source12, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the twelfth source sequence. /// The type of the elements in the thirteenth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Twelfth observable source. /// Thirteenth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, IObservable source12, IObservable source13, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (source12 == null) { throw new ArgumentNullException(nameof(source12)); } if (source13 == null) { throw new ArgumentNullException(nameof(source13)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, source12, source13, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the twelfth source sequence. /// The type of the elements in the thirteenth source sequence. /// The type of the elements in the fourteenth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Twelfth observable source. /// Thirteenth observable source. /// Fourteenth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, IObservable source12, IObservable source13, IObservable source14, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (source12 == null) { throw new ArgumentNullException(nameof(source12)); } if (source13 == null) { throw new ArgumentNullException(nameof(source13)); } if (source14 == null) { throw new ArgumentNullException(nameof(source14)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, source12, source13, source14, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the twelfth source sequence. /// The type of the elements in the thirteenth source sequence. /// The type of the elements in the fourteenth source sequence. /// The type of the elements in the fifteenth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Twelfth observable source. /// Thirteenth observable source. /// Fourteenth observable source. /// Fifteenth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, IObservable source12, IObservable source13, IObservable source14, IObservable source15, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (source12 == null) { throw new ArgumentNullException(nameof(source12)); } if (source13 == null) { throw new ArgumentNullException(nameof(source13)); } if (source14 == null) { throw new ArgumentNullException(nameof(source14)); } if (source15 == null) { throw new ArgumentNullException(nameof(source15)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, source12, source13, source14, source15, resultSelector); } /// /// Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// The type of the elements in the ninth source sequence. /// The type of the elements in the tenth source sequence. /// The type of the elements in the eleventh source sequence. /// The type of the elements in the twelfth source sequence. /// The type of the elements in the thirteenth source sequence. /// The type of the elements in the fourteenth source sequence. /// The type of the elements in the fifteenth source sequence. /// The type of the elements in the sixteenth source sequence. /// The type of the elements in the result sequence, returned by the selector function. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// Ninth observable source. /// Tenth observable source. /// Eleventh observable source. /// Twelfth observable source. /// Thirteenth observable source. /// Fourteenth observable source. /// Fifteenth observable source. /// Sixteenth observable source. /// Function to invoke whenever any of the sources produces an element. /// An observable sequence containing the result of combining elements of the sources using the specified result selector function. /// or or or or or or or or or or or or or or or or is null. /// If a non-empty source completes, its very last value will be used for creating subsequent combinations until all sources terminate. public static IObservable CombineLatest(this IObservable source1, IObservable source2, IObservable source3, IObservable source4, IObservable source5, IObservable source6, IObservable source7, IObservable source8, IObservable source9, IObservable source10, IObservable source11, IObservable source12, IObservable source13, IObservable source14, IObservable source15, IObservable source16, Func resultSelector) { if (source1 == null) { throw new ArgumentNullException(nameof(source1)); } if (source2 == null) { throw new ArgumentNullException(nameof(source2)); } if (source3 == null) { throw new ArgumentNullException(nameof(source3)); } if (source4 == null) { throw new ArgumentNullException(nameof(source4)); } if (source5 == null) { throw new ArgumentNullException(nameof(source5)); } if (source6 == null) { throw new ArgumentNullException(nameof(source6)); } if (source7 == null) { throw new ArgumentNullException(nameof(source7)); } if (source8 == null) { throw new ArgumentNullException(nameof(source8)); } if (source9 == null) { throw new ArgumentNullException(nameof(source9)); } if (source10 == null) { throw new ArgumentNullException(nameof(source10)); } if (source11 == null) { throw new ArgumentNullException(nameof(source11)); } if (source12 == null) { throw new ArgumentNullException(nameof(source12)); } if (source13 == null) { throw new ArgumentNullException(nameof(source13)); } if (source14 == null) { throw new ArgumentNullException(nameof(source14)); } if (source15 == null) { throw new ArgumentNullException(nameof(source15)); } if (source16 == null) { throw new ArgumentNullException(nameof(source16)); } if (resultSelector == null) { throw new ArgumentNullException(nameof(resultSelector)); } return s_impl.CombineLatest(source1, source2, source3, source4, source5, source6, source7, source8, source9, source10, source11, source12, source13, source14, source15, source16, resultSelector); } } #pragma warning disable CA1711 // (Don't use Ex suffix.) This has been a public type for many years, so we can't rename it now. public static partial class ObservableEx #pragma warning restore CA1711 { /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// First observable source. /// Second observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or is null. public static IObservable<(TFirst First, TSecond Second)> CombineLatest(this IObservable first, IObservable second) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); return s_impl.CombineLatest(first, second); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third)> CombineLatest(this IObservable first, IObservable second, IObservable third) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); return s_impl.CombineLatest(first, second, third); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third, TFourth Fourth)> CombineLatest(this IObservable first, IObservable second, IObservable third, IObservable fourth) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); if (fourth == null) throw new ArgumentNullException(nameof(fourth)); return s_impl.CombineLatest(first, second, third, fourth); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third, TFourth Fourth, TFifth Fifth)> CombineLatest(this IObservable first, IObservable second, IObservable third, IObservable fourth, IObservable fifth) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); if (fourth == null) throw new ArgumentNullException(nameof(fourth)); if (fifth == null) throw new ArgumentNullException(nameof(fifth)); return s_impl.CombineLatest(first, second, third, fourth, fifth); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or or or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third, TFourth Fourth, TFifth Fifth, TSixth Sixth)> CombineLatest(this IObservable first, IObservable second, IObservable third, IObservable fourth, IObservable fifth, IObservable sixth) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); if (fourth == null) throw new ArgumentNullException(nameof(fourth)); if (fifth == null) throw new ArgumentNullException(nameof(fifth)); if (sixth == null) throw new ArgumentNullException(nameof(sixth)); return s_impl.CombineLatest(first, second, third, fourth, fifth, sixth); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or or or or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third, TFourth Fourth, TFifth Fifth, TSixth Sixth, TSeventh Seventh)> CombineLatest(this IObservable first, IObservable second, IObservable third, IObservable fourth, IObservable fifth, IObservable sixth, IObservable seventh) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); if (fourth == null) throw new ArgumentNullException(nameof(fourth)); if (fifth == null) throw new ArgumentNullException(nameof(fifth)); if (sixth == null) throw new ArgumentNullException(nameof(sixth)); if (seventh == null) throw new ArgumentNullException(nameof(seventh)); return s_impl.CombineLatest(first, second, third, fourth, fifth, sixth, seventh); } /// /// Merges the specified observable sequences into one observable sequence of tuple values whenever any of the observable sequences produces an element. /// /// The type of the elements in the first source sequence. /// The type of the elements in the second source sequence. /// The type of the elements in the third source sequence. /// The type of the elements in the fourth source sequence. /// The type of the elements in the fifth source sequence. /// The type of the elements in the sixth source sequence. /// The type of the elements in the seventh source sequence. /// The type of the elements in the eighth source sequence. /// First observable source. /// Second observable source. /// Third observable source. /// Fourth observable source. /// Fifth observable source. /// Sixth observable source. /// Seventh observable source. /// Eighth observable source. /// An observable sequence containing the result of combining elements of the sources using tuple values. /// or or or or or or or is null. public static IObservable<(TFirst First, TSecond Second, TThird Third, TFourth Fourth, TFifth Fifth, TSixth Sixth, TSeventh Seventh, TEighth Eighth)> CombineLatest(this IObservable first, IObservable second, IObservable third, IObservable fourth, IObservable fifth, IObservable sixth, IObservable seventh, IObservable eighth) { if (first == null) throw new ArgumentNullException(nameof(first)); if (second == null) throw new ArgumentNullException(nameof(second)); if (third == null) throw new ArgumentNullException(nameof(third)); if (fourth == null) throw new ArgumentNullException(nameof(fourth)); if (fifth == null) throw new ArgumentNullException(nameof(fifth)); if (sixth == null) throw new ArgumentNullException(nameof(sixth)); if (seventh == null) throw new ArgumentNullException(nameof(seventh)); if (eighth == null) throw new ArgumentNullException(nameof(eighth)); return s_impl.CombineLatest(first, second, third, fourth, fifth, sixth, seventh, eighth); } } }