문제

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