Click or drag to resize

FlagsHelperIsSetT Method

Checks if an enum is part of a mask

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool IsSet<T>(
	T flags,
	T flag
)
where T : struct, new()

Parameters

flags
Type: T
The value of the mask
flag
Type: T
The enum to check against the mask

Type Parameters

T
The enum type

Return Value

Type: Boolean
True if the enum is part of the mask, false if it is not
See Also