摘要:
//定义索引器 public class TempRecord { float[] temps = new float[10] { 56.2F, 56.7F, 56.5F, 56.9F, 58.8F, 61.3F, 65.9F, 62.1F, 59.2F, 57.5F }; public int L 阅读全文
摘要:
//using var list = new List<Object>(); using (var items = list.GetEnumerator()) { } //try-finally(这也是foreach内部实现) var items = list.GetEnumerator(); tr 阅读全文
摘要:
string query1String, query2String; //Linq查询 using (var context = new TestDB()) { var result = context.Users.Where(c => c.Name == "admin"); query1Strin 阅读全文