Click or drag to resize

FlagsHelperSetT Method

Sets an enum to be part of a bitmask

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

Parameters

flags
Type: T
The value of the mask to be edited
flag
Type: T
The enum to add to the mask

Type Parameters

T
The enum type
See Also