Show/Hide Toolbars

XSharp

Navigation: X# Examples

Typed Enums

Scroll Prev Top Next More

Enums may now be typed in X#. The type indicates the base class for the ENUM. By specifying a AS clause you can determine the size in bytes that the ENUM uses.

 

ENUM Foo AS BYTE
  MEMBER One
  MEMBER Two
END ENUM