you have string iden, convert it to int like this:
int devId= Convert.ToInt32(iden);
Question
I want to get a unique id in windows phone 8 . I used DeviceUniqueId with the following code :
byte[] id = (byte[])Microsoft.Phone.Info.DeviceExtendedProperties.GetValue("DeviceUniqueId");
iden = BitConverter.ToString(id).Replace("-", string.Empty);
now I want to convert it to int how can I do that ?
Solution
you have string iden, convert it to int like this:
int devId= Convert.ToInt32(iden);