摘要:
yield关键字用于遍历循环中,yield return用于返回IEnumerable, yield break用于终止循环遍历 using System; using System.Collections.Generic; using System.Linq; using System.Text; 阅读全文
摘要:
1. DataTable可以也可以使用Linq进行条件的赛选 注意:当查询结果或者查询数据源无数据则抛异常:数据源中没有 DataRow。 using System; using System.Collections.Generic; using System.Linq; using System. 阅读全文
摘要:
泛型委托:表示定义一组条件并确定指定对象是否符合这些条件的方法。此委托由 Array 和 List 类的几种方法使用,用于在集合中搜索元素。 using System; using System.Collections.Generic; using System.Linq; using System 阅读全文
摘要:
1. 无参有返回值 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static 阅读全文
摘要:
1. 无参无返回值 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static 阅读全文
摘要:
1. 显式调用 using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { //定义委托 public delegate i 阅读全文