i got an error with enum implementatios in C#.net
Error 1 'int' does not contain a definition for 'tostring' , code fallows...
can any one solve my problem,please
Error 1 'int' does not contain a definition for 'tostring' , code fallows...
Code:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public enum numbers { zero, one, two } public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { MessageBox.Show(((int)numbers.two * 2).tostring()); } } }
can any one solve my problem,please
Comment