EnumUtils.Max method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Enums
Assembly Skybrud.Essentials.dll

Max<T>(T, T)

Static

Returns the maximum value of the enum values a and b.

public static T Max<T>(T a, T b)

Type Parameters

T

The enum type.

Parameters

a T

The first enum value.

b T

The second enum value.

Returns

T

An instance of T representing the maximum value.

Max<T>(T[])

Static
public static T Max<T>(T[] values)

Type Parameters

T

Parameters

values Array of T

Returns

T

Max<T>(IEnumerable<T>)

Static

Returns the maximum value of the specified enum values.

public static T Max<T>(IEnumerable<T> values)

Type Parameters

T

The enum type.

Parameters

values IEnumerable<T>

The enum values to compare.

Returns

T

An instance of T representing the maximum value.