上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 56 下一页
摘要: 1.与运算(&) 参加运算的两个数据,按二进制位进行“与”运算。 运算规则:0&0=0; 0&1=0; 1&0=0; 1&1=1; 即:两位同时为“1”,结果才为“1”,否则为0 例如:3&5 即 0000 0011 & 0000 0101 = 0000 0001 因此,3&5的值得1。 例如:9& 阅读全文
posted @ 2019-01-02 16:23 一只桔子2233 阅读(817) 评论(0) 推荐(0) 编辑
摘要: foreach删除元素方法 List list = new List() { "1", "2", "3", "4", "5" }; foreach (var item in list.ToArray()) { if (item == "3") list.... 阅读全文
posted @ 2019-01-02 16:07 一只桔子2233 阅读(96) 评论(0) 推荐(0) 编辑
摘要: class Program { public static void Main() { // Define a provider and two observers. LocationTracker provider = new LocationTracker(); Loc... 阅读全文
posted @ 2019-01-02 15:25 一只桔子2233 阅读(2678) 评论(0) 推荐(1) 编辑
摘要: 获取字段在数据库所有表里面 出现的表的位置 阅读全文
posted @ 2019-01-02 10:23 一只桔子2233 阅读(195) 评论(0) 推荐(0) 编辑
摘要: class Program { static void Main() { Go(); Console.ReadKey(); } public static async Task Go() { #if DEBUG //使用会影响... 阅读全文
posted @ 2019-01-01 15:14 一只桔子2233 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 28.2 C#的异步函数 阅读全文
posted @ 2018-12-31 20:11 一只桔子2233 阅读(131) 评论(0) 推荐(0) 编辑
摘要: private static System.Threading.Timer s_Timer; static void Main() { Console.WriteLine("checking status every 2 seconds"); s_Timer = new System.Thread... 阅读全文
posted @ 2018-12-31 09:56 一只桔子2233 阅读(199) 评论(0) 推荐(0) 编辑
摘要: static void Main() { ObsoleteMethods(Assembly.Load("mscorlib.dll")); Console.ReadKey(); } private static void ObsoleteMethods(Assembly assemb... 阅读全文
posted @ 2018-12-30 22:57 一只桔子2233 阅读(157) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { //for (int i = 0; i DoWork(i)); //Mehtod1(); //Mehtod2(); //Mehtod3(); Parallel.Invo... 阅读全文
posted @ 2018-12-30 22:31 一只桔子2233 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 27.5.1 等待任务完成并获取结果 27.5.2 取消任务 27.5.3 任务完成时自动启动新任务 27.5.4 任务可以启动子任务 27.5.6 任务工厂 27.5.7 任务调度器 阅读全文
posted @ 2018-12-30 18:08 一只桔子2233 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 56 下一页