博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年8月19日

摘要: using System;using System.Collections.Generic;using System.Text;using System.Diagnostics;using System.Data;namespace TestList{ class Program { static void Main(string[] args) { List<DateTime> li... 阅读全文

posted @ 2010-08-19 23:56 moss_tan_jun 阅读(3489) 评论(0) 推荐(1) 编辑

摘要: 最近写案子常常用到List<T>,这个东西还真好用 因为它有下列东西:List<T>.Sort() → 排序TList<T>.Find() → 找出一个TList<T>.FindAll() →找出多个TList<T>.Exist() →判断T是否存在小弟就写个范例介绍这些东西吧..List&... 阅读全文

posted @ 2010-08-19 23:52 moss_tan_jun 阅读(1656) 评论(0) 推荐(1) 编辑

摘要: namespace ListMethod{ public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { List<Person> lstPerson = new List<Person>(); lstPerson.Add... 阅读全文

posted @ 2010-08-19 23:38 moss_tan_jun 阅读(5062) 评论(0) 推荐(0) 编辑