EnumUtils.Min method

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

Min<T>(T, T)

Static

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

public static T Min<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 minimum value.

Min<T>(T[])

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

Type Parameters

T

Parameters

values Array of T

Returns

T

Min<T>(IEnumerable<T>)

Static

Returns the minimum value of the specified enum values.

public static T Min<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 minimum value.