Skip to content

M_CodeJam_EnumHelper_AreFlagsDefined__1

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

EnumHelper.AreFlagsDefined(TEnum) Method

Determines whether all bits of the flags combination are defined.

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

Syntax

C#

public static bool AreFlagsDefined<TEnum>(
	TEnum flags
)
where TEnum : struct, new()

VB

Public Shared Function AreFlagsDefined(Of TEnum As {Structure, New}) ( 
	flags As TEnum
) As Boolean

F#

static member AreFlagsDefined : 
        flags : 'TEnum -> bool  when 'TEnum : struct, new()

Parameters

 

flags
Type: TEnum
The flags to check.

Type Parameters

 

TEnum
The type of the enum.

Return Value

Type: Boolean
True, if enum defines all bits of the flags combination.

See Also

Reference

EnumHelper Class
CodeJam Namespace

Clone this wiki locally