辉_妞

 

2012年3月26日

C#ICollection<T>接口简介

摘要: public interface ICollection<T> : IEnumerable<T>, IEnumerableType ParametersTThe type of the elements in the collection.The ICollection(Of T) type exposes the following members.PropertiesNameDescription CountGets the number of elements contained in the ICollection(Of T). IsReadOnlyGets a 阅读全文

posted @ 2012-03-26 11:22 辉_妞 阅读(2553) 评论(0) 推荐(0)

LINQ中IEnumerable<T>接口简介

摘要: IEnumerable<T>接口主要功能是提供了大量与查询相关的方法,虽然这些方法实际上是以扩展方法的形式定义,但也不影响IEnumerable<T>接口的功能性。1.IEnumerable<T>接口IEnumerable<T>泛型接口支持在制定数据集合上进行迭代操作。它定义了一组扩展方法,用来对数据集合中的元素进行遍历、过滤、排序、搜索等操作。在LINQ中,数据源实际上是实现了接口IEnumerable<T>的类,通过select子句返回的查询结果页是一个实现了IEnumerable<T>的类。在.NET类库中,IEnu 阅读全文

posted @ 2012-03-26 11:13 辉_妞 阅读(841) 评论(0) 推荐(0)

导航