Click or drag to resize

imbTypeEnumExtensionsSetFlagT Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Sets the flag specified flag

Namespace:  imbSCI.Core.extensions.enumworks
Assembly:  imbSCI.Core (in imbSCI.Core.dll) Version: 0.3.58.
Syntax
C#
public static T SetFlag<T>(
	this Enum en,
	Enum flag,
	bool setFlag = true
)
where T : IConvertible
Request Example View Source

Parameters

en
Type: SystemEnum
The enumeration to receive the flag
flag
Type: SystemEnum
The flag to set
setFlag (Optional)
Type: SystemBoolean
if set to true set the flag, if false it will unset

Type Parameters

T

Return Value

Type: T

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