hi
I have converted mac address by parsing into int in this way
string s= nic.GetPhysicalAddress().ToString();
int k=Int32.Parse(s, System.Globalization.NumberStyles.HexNumber);
MessageBox.Show(Convert.ToString(k));
here, it is raising error as 'value is either too large or too small for int32'.I tried with int64 also but it is raising cannot implicitly convert long to int.How can i solve this?
How to avoid integer error?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

krishna veni4 reputationPosted Aug 6, 2009, 10:32 PM EDT
at this satge type cating can be used.
i hope it wil be helpful 2 u