Enumeration<T>

Summary

The wrapper class for enumerations.

Description

The System.Enumeration class is the wrapper class for enumerations declared with the enum keyword.

Examples

Basic Usage
1
2
3
4
5
6
import System;
 
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }
 
System.Enumeration<Days> sunday = Days.SUNDAY;
System.Console.log(sunday.toString());

Methods

  • compare

    Compares the Enumeration object to another Enumeration object.

  • Enumeration (Constructor)

    Constructs a System.Enumeration object with a specified enum value.

  • toString

    Returns a string representation of the enumeration value.

Share

HTML | BBCode | Direct Link