using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class enum1 : Form
{
public enum1()
{
InitializeComponent();
}
enum days {sat,sun,mon,tue,wed,thu,fri};
private
void button1_Click(object
sender, EventArgs e)
{
int
x = (int)days.sat;
MessageBox.Show(x.ToString());
}
}
}
No comments:
Post a Comment