Click or drag to resize

imbEnumExtendBaseToInt32From Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Returns distance in Int32 between fromEnum and to value.

Namespace:  imbSCI.Core.extensions.enumworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static int ToInt32From(
	this Enum from,
	Enum to
)
Request Example View Source

Parameters

from
Type: SystemEnum
Enum to start measuring distance from.
to
Type: SystemEnum
Enum value to measure distace to.

Return Value

Type: Int32
Int32 distance between options from and to

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also