Click or drag to resize

imbTypeEnumExtensionsconvertToBasicEnumT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Converts a Enum type member into another Enum type member with name starting with or being the same as name of the first.

Namespace:  imbSCI.Core.extensions.enumworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static T convertToBasicEnum<T>(
	this Enum input
)
Request Example View Source

Parameters

input
Type: SystemEnum

Type Parameters

T
Enum jednostavniji

Return Value

Type: T
T member with the same name or name that starts with input name

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).
Remarks
input name should start with name of a member from Enum This may be used for same-name Enum to Enum conversion.
Examples

inputEnum => input

input => input

input != inputEnum

See Also