随笔分类 - windows phone ——— 笔记
摘要:Reminder reminder = ScheduledActionService.Find("MY REMINDER") as Reminder;if ( reminder != null ) { ScheduledActionService.Remove("MY REMINDER");}...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Net;using...
阅读全文
摘要:通过 ConnectionSettingsType 的设置,可以跳转 到 wifi、蓝牙、飞行模式、以及网络连接其他方案跳转1 private async void Button_Click_1(object sender, RoutedEventArgs e)2 {3 var op = await Windows.System.Launcher.LaunchUriAsync(new Uri("ms-settings-location:"));4 }更多操作可以参加下面链接 http://msdn.microsoft.com/zh-cn/library/windowspho
阅读全文
摘要:在c#中,凡是实现了IEnumerable接口的数据类型都可以用foreach语句进行迭代访问。所以,我们要定义一个可以使用foreach进行迭代访问的类,就必须要实现IEnumerable接口。 1 // 摘要: 2 // 公开枚举器,该枚举器支持在非泛型集合上进行简单迭代。 3 public interface IEnumerable 4 { 5 // 摘要: 6 // 返回一个循环访问集合的枚举器。 7 // 8 // 返回结果: 9 // 可用于循环访问集合的 System.Collections.IEnumerato...
阅读全文
摘要:聚合操作符 说明 Aggregate对序列执行一个自定义方法 Average 计算数值序列的平均值Count返回序列中的项目数(整数)LongCount返回序列中的项目数(长型)Min查找数字序列中的最小数Max查找数字序列中的最大值Sum汇总序列中的数字连接操作符说明Concat将两个序列连成一个序列转换操作符说明Cast将序列中的元素转换成指定类型OfType筛选序列中指定类型的元素ToArray从序列返回一个数组ToDictionary从序列返回一个字典ToList从序列返回一个列表ToLookup从序列返回一个查询ToSequence返回一个IEnumerable序列元素操作符说明De
阅读全文

浙公网安备 33010602011771号