UtilEnumFindNearestEnumValueT(Int64, EnumFindDirection) Method

Gets the nearest value of an Enum.

Definition

Namespace: DevCase.Runtime.Enums
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static T FindNearestEnumValue<T>(
	long value,
	EnumFindDirection direction
)

Parameters

value  Int64
The existing value.
direction  EnumFindDirection
The find direction of the nearest value.

Type Parameters

T
The type of Enum.

Return Value

T
The nearest value in the specified Enum.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also