摘要:
I've been involved in the electronic compass of the Windows Phone, and it seems not that difficult.The Compass class is in theMicrosoft.Devices.Sensors namespace, and must add the referrence before using it.private Compass _compass;//...if (Compass.IsSupported){ _compass = new Compass(); _comp.. 阅读全文
摘要:
I've met a serious problem that I wanted to pass a variable number of parameters to a method, and I used to use the List to implement it. However, I found it so complex.I've searched about it and found the way to solve it.public class MyClass{ public static void UseParams(params int[] list) 阅读全文