重新修改枚举扩展的命名空间为NewLife.Linq,避免在.Net 4.0中出现冲突
nnhy 编写于 2011-11-15 20:48:42
X
using System;
using System.Collections;
using System.Collections.Generic;

namespace NewLife.Linq
{
    /// <summary>表示具有公共键的对象的集合。</summary>
    /// <typeparam name="TKey">
    ///   <see cref="T:NewLife.Linq.IGrouping`2" /> 的键的类型。</typeparam>
    /// <typeparam name="TElement">
    ///   <see cref="T:NewLife.Linq.IGrouping`2" /> 的值的类型。</typeparam>
    /// <filterpriority>2</filterpriority>
    public interface IGrouping<TKey, TElement> : IEnumerable<TElement>, IEnumerable
    {
        /// <summary>获取 <see cref="T:NewLife.Linq.IGrouping`2" /> 的键。</summary>
        /// <returns>
        ///   <see cref="T:NewLife.Linq.IGrouping`2" /> 的键。</returns>
        TKey Key
        {
            get;
        }
    }
}