Skip to content

M_CodeJam_EnumHelper_GetFlagsMask__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

EnumHelper.GetFlagsMask(TEnum) Method

Returns a combination of all flags declared in the enum.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

public static TEnum GetFlagsMask<TEnum>()
where TEnum : struct, new()

VB

Public Shared Function GetFlagsMask(Of TEnum As {Structure, New}) As TEnum

F#

static member GetFlagsMask : unit -> 'TEnum  when 'TEnum : struct, new()

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: TEnum
A combination of all flags declared in the enum, or default(TEnum) if IsFlagsEnum(TEnum)() is false.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally