Table of Contents

Method GetMaxValueUseLastOrDefault

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetMaxValueUseLastOrDefault<T>(T?)

Returns maxValue if it's specified; otherwise uses GetMaxValueUseLastAsInt<T>() in order to obtain the result.

public static int GetMaxValueUseLastOrDefault<T>(T? maxValue) where T : struct, Enum

Parameters

maxValue T?

Max value in the enum.

Returns

int

Type Parameters

T

Type of the enum.