Skip to content

)} )} )} )} })} })} })} })} })} )} )} ,System.Collections.Generic.IComparer{--0})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Double}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Single}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Decimal}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Int32}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Int64}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Nullable{System.Double}}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Nullable{System.Single}}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Nullable{System.Decimal}}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Nullable{System.Int32}}})} ,System.Linq.Expressions.Expression{System.Func{--0,System.Nullable{System.Int64}}})} ,System.Linq.Expressions.Expression{System.Func{--0,--1}})} ,System.Linq.Expressions.Expression{System.Func{--0,--1}},System.Collections.Generic.IComparer{--1})}

Qbservable.Max(IQbservable) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<decimal> Max(this IQbservable<decimal> source)
  • 2. public static IQbservable<double> Max(this IQbservable<double> source)
  • 3. public static IQbservable<int> Max(this IQbservable<int> source)
  • 4. public static IQbservable<long> Max(this IQbservable<long> source)
  • 5. public static IQbservable<decimal?> Max(this IQbservable<decimal?> source)
  • 6. public static IQbservable<double?> Max(this IQbservable<double?> source)
  • 7. public static IQbservable<int?> Max(this IQbservable<int?> source)
  • 8. public static IQbservable<long?> Max(this IQbservable<long?> source)
  • 9. public static IQbservable<float?> Max(this IQbservable<float?> source)
  • 10. public static IQbservable<float> Max(this IQbservable<float> source)
  • 11. public static IQbservable<TSource> Max<TSource>(this IQbservable<TSource> source)
  • 12. public static IQbservable<TSource> Max<TSource>(this IQbservable<TSource> source, IComparer<TSource> comparer)
  • 13. public static IQbservable<double> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, double>> selector)
  • 14. public static IQbservable<float> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, float>> selector)
  • 15. public static IQbservable<decimal> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, decimal>> selector)
  • 16. public static IQbservable<int> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, int>> selector)
  • 17. public static IQbservable<long> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, long>> selector)
  • 18. public static IQbservable<double?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, double?>> selector)
  • 19. public static IQbservable<float?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, float?>> selector)
  • 20. public static IQbservable<decimal?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, decimal?>> selector)
  • 21. public static IQbservable<int?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, int?>> selector)
  • 22. public static IQbservable<long?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, long?>> selector)
  • 23. public static IQbservable<TResult> Max<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, TResult>> selector)
  • 24. public static IQbservable<TResult> Max<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, TResult>> selector, IComparer<TResult> comparer)

1. Overload

public static IQbservable<decimal> Max(this IQbservable<decimal> source)

Summary: Returns the maximum value in an observable sequence of Decimal values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of Decimal values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

2. Overload

public static IQbservable<double> Max(this IQbservable<double> source)

Summary: Returns the maximum value in an observable sequence of Double values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of Double values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

3. Overload

public static IQbservable<int> Max(this IQbservable<int> source)

Summary: Returns the maximum value in an observable sequence of Int32 values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of Int32 values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

4. Overload

public static IQbservable<long> Max(this IQbservable<long> source)

Summary: Returns the maximum value in an observable sequence of Int64 values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of Int64 values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

5. Overload

public static IQbservable<decimal?> Max(this IQbservable<decimal?> source)

Summary: Returns the maximum value in an observable sequence of nullable Decimal values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of nullable Decimal values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

6. Overload

public static IQbservable<double?> Max(this IQbservable<double?> source)

Summary: Returns the maximum value in an observable sequence of nullable Double values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of nullable Double values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

7. Overload

public static IQbservable<int?> Max(this IQbservable<int?> source)

Summary: Returns the maximum value in an observable sequence of nullable Int32 values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of nullable Int32 values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

8. Overload

public static IQbservable<long?> Max(this IQbservable<long?> source)

Summary: Returns the maximum value in an observable sequence of nullable Int64 values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of nullable Int64 values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

9. Overload

public static IQbservable<float?> Max(this IQbservable<float?> source)

Summary: Returns the maximum value in an observable sequence of nullable Single values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of nullable Single values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

10. Overload

public static IQbservable<float> Max(this IQbservable<float> source)

Summary: Returns the maximum value in an observable sequence of Single values.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of Single values to determine the maximum value of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

11. Overload

public static IQbservable<TSource> Max<TSource>(this IQbservable<TSource> source)

Summary: Returns the maximum element in an observable sequence.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#An observable sequence to determine the maximum element of.

Returns: IQbservable -- An observable sequence containing a single element with the maximum element in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource is null.

12. Overload

public static IQbservable<TSource> Max<TSource>(this IQbservable<TSource> source, IComparer<TSource> comparer)

Summary: Returns the maximum value in an observable sequence according to the specified comparer.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#An observable sequence to determine the maximum element of.
comparerIComparerComparer used to compare elements.

Returns: IQbservable -- An observable sequence containing a single element with the maximum element in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or comparer is null.

13. Overload

public static IQbservable<double> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, double>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum Double value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Double that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

14. Overload

public static IQbservable<float> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, float>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum Single value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Single that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

15. Overload

public static IQbservable<decimal> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, decimal>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum Decimal value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Decimal that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

16. Overload

public static IQbservable<int> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, int>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum Int32 value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Int32 that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

17. Overload

public static IQbservable<long> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, long>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum Int64 value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Int64 that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

18. Overload

public static IQbservable<double?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, double?>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum nullable Double value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Nullable that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

19. Overload

public static IQbservable<float?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, float?>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum nullable Single value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Nullable that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

20. Overload

public static IQbservable<decimal?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, decimal?>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum nullable Decimal value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Nullable that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

21. Overload

public static IQbservable<int?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, int?>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum nullable Int32 value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Nullable that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

22. Overload

public static IQbservable<long?> Max<TSource>(this IQbservable<TSource> source, Expression<Func<TSource, long?>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum nullable Int64 value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#A sequence of values to determine the maximum value of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value of type Nullable that corresponds to the maximum value in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

23. Overload

public static IQbservable<TResult> Max<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, TResult>> selector)

Summary: Invokes a transform function on each element of a sequence and returns the maximum value.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the objects derived from the elements in the source sequence to determine the maximum of.

Parameters

NameTypeDescription
source[IQbservable](#An observable sequence to determine the minimum element of.
selectorExpression>A transform function to apply to each element.

Returns: IQbservable -- An observable sequence containing a single element with the value that corresponds to the maximum element in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

24. Overload

public static IQbservable<TResult> Max<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, TResult>> selector, IComparer<TResult> comparer)

Summary: Invokes a transform function on each element of a sequence and returns the maximum value according to the specified comparer.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the objects derived from the elements in the source sequence to determine the maximum of.

Parameters

NameTypeDescription
source[IQbservable](#An observable sequence to determine the minimum element of.
selectorExpression>A transform function to apply to each element.
comparerIComparerComparer used to compare elements.

Returns: IQbservable -- An observable sequence containing a single element with the value that corresponds to the maximum element in the source sequence.

Remarks

The return type of this operator differs from the corresponding operator on IEnumerable in order to retain asynchronous behavior.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector or comparer is null.