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 ?

Was it helpful?

Solution

you have string iden, convert it to int like this:

int devId= Convert.ToInt32(iden);

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top