Enum
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 expenum : Form
{
public expenum()
{
InitializeComponent();
}
enum titles : int { Mr, Mrs, Dr };
private void expenum_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
titles t = titles.Dr;
MessageBox.Show(t + " Abdul Kalam ");
}
}
}
Category: