toString

Summary

Returns a string representation of the enumeration value.

Usage

public override string toString()

Returns

A string representation of the enumeration value.

Description

Returns a string representation of the enumeration value.

Examples

Basic Usage
1
2
3
4
import System;
 
enum Days { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY }
Console.log(Days.SUNDAY.toString() == "SUNDAY"); // true

Share

HTML | BBCode | Direct Link