摘要: using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using iTextSharp.text;using System.IO;using iTex 阅读全文
posted @ 2012-04-01 20:00 rayray2 阅读(204) 评论(2) 推荐(0) 编辑
摘要: class Program { static void Main(string[] args) { int[] ints = new int[] { 1, 3, 5, 7, 9, 2, 4, 6, 8, 10 }; int k = ints.First(delegate(int o){ return o == 3; }); int kk1 = ints.Count(delegate(int o) { return o > 3; }); //int[] kk run(); } private static void run() { //Sort(ints, Asc); //Sort(i.. 阅读全文
posted @ 2012-04-01 19:56 rayray2 阅读(134) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Configuration;using DataAcess;using Models;namespace Repository{ public interface IProductsRepository { IList<Product> GetProductsList(); } public class ProductsRepository : IProduc 阅读全文
posted @ 2012-04-01 19:51 rayray2 阅读(143) 评论(0) 推荐(0) 编辑
摘要: private static void D1() { int[] ints = new int[] { 1, 1, 11, 3, 2, 4, 5, 6, 7, 5, 12, 3, 32, 4, 5, 8 }; var s = ints.Select(o => o).AsEnumerable().Distinct().ToList(); } 阅读全文
posted @ 2012-04-01 19:45 rayray2 阅读(167) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="content-type" conte 阅读全文
posted @ 2012-04-01 19:42 rayray2 阅读(160) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Linq.Expressions;namespace ConsoleApp1{ class Program { static void Main(string[] args) { var s = new [] { new {id=1 , name =2}, new {id=2, name =2},new {id=4, name =4} }; var d = new[] { new {id=1 , make 阅读全文
posted @ 2012-04-01 19:39 rayray2 阅读(185) 评论(0) 推荐(0) 编辑