摘要:
/// <summary>要查询的对象</summary>class Employee { public int ID { get;set; } public string FName { get; set; } public int Age { get; set; } public char Sex { get; set; }}如果对这个类的Age和Sex的连个字段进行分组,方法如下:// 先造一些数据List<Employee> empList = new List<Employee>();empList.Add(new Employee() 阅读全文
摘要:
有两种方法:第用:用.net类实现:using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; /* * 说明:此类用于将一个字符串找出首字声母,用法:ChineseConvert.Uti 阅读全文