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 ?

有帮助吗?

解决方案

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

int devId= Convert.ToInt32(iden);

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top