摘要:
public static class MyExtensionMethods { public static IEnumerable<Product>FilterByCategory( this IEnumerable<Product> productEnum, string categoryParam) { foreach(Product prod in productEnum) { if(prod.Category == categoryParam) ... 阅读全文
posted @ 2012-03-14 16:33
HWwayne
阅读(186)
评论(0)
推荐(0)
摘要:
public class Product { private string name; public int ProductID { get; set; } public string Name { get { return ProductID + name; } set { name = value; } } public string Description { get; set; } public decimal Price { get; set; } public string Category { set; get; } } publi... 阅读全文
posted @ 2012-03-14 16:09
HWwayne
阅读(121)
评论(0)
推荐(0)
浙公网安备 33010602011771号