摘要: 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.. 阅读全文
posted @ 2013-08-18 23:44 Wayne·Cheng 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 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) 阅读全文
posted @ 2013-08-18 18:32 Wayne·Cheng 阅读(210) 评论(0) 推荐(0) 编辑