IEnum.opIndex

Looks up an enum member's value from its name, using opIndex.

  1. Name opIndex(Value v)
  2. Value opIndex(Name n)
    interface IEnum
    opIndex

Parameters

n Name

name to look up

Return Value

Type: Value

corresponding value

Throws

ArrayBoundsException if name doesn't exist in enum

Meta