Skip to content

M_CodeJam_EnumCodeExceptions_ArgumentFlagSet__1

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

EnumCodeExceptions.ArgumentFlagSet(TEnum) Method

Creates ArgumentException for flag is set case.

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

Syntax

C#

public static ArgumentException ArgumentFlagSet<TEnum>(
	string argumentName,
	TEnum value,
	TEnum flag
)
where TEnum : struct, new()

VB

Public Shared Function ArgumentFlagSet(Of TEnum As {Structure, New}) ( 
	argumentName As String,
	value As TEnum,
	flag As TEnum
) As ArgumentException

F#

static member ArgumentFlagSet : 
        argumentName : string * 
        value : 'TEnum * 
        flag : 'TEnum -> ArgumentException  when 'TEnum : struct, new()

Parameters

 

argumentName
Type: System.String
Name of the argument.
value
Type: TEnum
The value.
flag
Type: TEnum
The flag.

Type Parameters

 

TEnum
The type of the enum value.

Return Value

Type: ArgumentException
Initialized instance of ArgumentException.

See Also

Reference

EnumCodeExceptions Class
CodeJam Namespace

Clone this wiki locally