Skip to content

M_CodeJam_EnumHelper_AreFlagsDefined__1

andrewvk edited this page Jun 23, 2016 · 6 revisions

EnumHelper.AreFlagsDefined(TEnum) Method

Determines whether all bits of the flags combination are defined

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

Syntax

C#

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

VB

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

F#

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

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