Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions UnitsNet/UnitMath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static TQuantity Min<TQuantity>(TQuantity val1, TQuantity val2) where TQu
/// <exception cref="ArgumentException">
/// <paramref name="source">source</paramref> contains quantity types different from <paramref name="unitType" />.
/// </exception>
[Obsolete("This extension will be removed in v6: consider using the version from System.Linq.Min")]
public static TQuantity Min<TQuantity>(this IEnumerable<TQuantity> source, Enum unitType)
where TQuantity : IQuantity
{
Expand All @@ -102,6 +103,7 @@ public static TQuantity Min<TQuantity>(this IEnumerable<TQuantity> source, Enum
/// <exception cref="ArgumentException">
/// <paramref name="source">source</paramref> contains quantity types different from <paramref name="unitType" />.
/// </exception>
[Obsolete("This extension will be removed in v6: consider using the version from System.Linq.Min")]
public static TQuantity Min<TSource, TQuantity>(this IEnumerable<TSource> source, Func<TSource, TQuantity> selector, Enum unitType)
where TQuantity : IQuantity
{
Expand Down Expand Up @@ -129,6 +131,7 @@ public static TQuantity Max<TQuantity>(TQuantity val1, TQuantity val2) where TQu
/// <exception cref="ArgumentException">
/// <paramref name="source">source</paramref> contains quantity types different from <paramref name="unitType" />.
/// </exception>
[Obsolete("This extension will be removed in v6: consider using the version from System.Linq.Max")]
public static TQuantity Max<TQuantity>(this IEnumerable<TQuantity> source, Enum unitType)
where TQuantity : IQuantity
{
Expand All @@ -152,6 +155,7 @@ public static TQuantity Max<TQuantity>(this IEnumerable<TQuantity> source, Enum
/// <exception cref="ArgumentException">
/// <paramref name="source">source</paramref> contains quantity types different from <paramref name="unitType" />.
/// </exception>
[Obsolete("This extension will be removed in v6: consider using the version from System.Linq.Max")]
public static TQuantity Max<TSource, TQuantity>(this IEnumerable<TSource> source, Func<TSource, TQuantity> selector, Enum unitType)
where TQuantity : IQuantity
{
Expand Down