in

SDT Community Server

SDT Forums, Blogs, Photos server.

wego

Browse by Tags

All Tags » .NET (RSS)
  • Dot Net 2.0 使用3.5的 Linq

    注意事项: 1) 前提是开发者机器要装有 Framework 3.5, 引入 Reference : System.Core 2) 若发布服务器没装 Framework 3.5, 需手工把 System.Core.dll 加入到 bin 下再发布 =========================================== using System.Linq; .. string[] list = new string[] { "mary", "tom", "david", "cathy", "tom" }; // 除数组外, 其它集合类也可 (如: List, Hashtable , Dictionary) IEnumerable<string> result; // Console.WriteLine("--- 'FirstOrDefault' --"); result = Enumerable.Where<string>...
    Posted May 14 2008, 01:38 PM by wego with | with no comments
    Filed under: ,
Copyright SDT, 2006-2009. All rights reserved.