5 implementations of IGrouping
System.Core (3)
System\Linq\Enumerable.cs (1)
2298
internal class Grouping :
IGrouping
<TKey, TElement>, IList<TElement>
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (2)
692
internal class GroupByGrouping<TGroupKey, TElement> :
IGrouping
<TGroupKey, TElement>
740
internal class OrderedGroupByGrouping<TGroupKey, TOrderKey, TElement> :
IGrouping
<TGroupKey, TElement>
System.Data.Entity (1)
System\Data\Objects\ELinq\InitializerFacet.cs (1)
163
private class Grouping<K, T> :
IGrouping
<K, T>
System.Data.Linq (1)
SqlClient\Reader\ObjectReaderCompiler.cs (1)
2964
internal class Group<K, T> :
IGrouping
<K, T>, IEnumerable<T>, IEnumerable {
77 references to IGrouping
System.Core (67)
System\Linq\Enumerable.cs (9)
768
public static IEnumerable<
IGrouping
<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) {
772
public static IEnumerable<
IGrouping
<TKey, TSource>> GroupBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, IEqualityComparer<TKey> comparer) {
776
public static IEnumerable<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector) {
780
public static IEnumerable<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector, Func<TSource, TElement> elementSelector, IEqualityComparer<TKey> comparer) {
2173
public interface ILookup<TKey, TElement> : IEnumerable<
IGrouping
<TKey, TElement>>{
2179
public class Lookup<TKey, TElement> : IEnumerable<
IGrouping
<TKey, TElement>>, ILookup<TKey, TElement>{
2227
public IEnumerator<
IGrouping
<TKey, TElement>> GetEnumerator() {
2513
internal class GroupedEnumerable<TSource, TKey, TElement> : IEnumerable<
IGrouping
<TKey, TElement>>
2530
public IEnumerator<
IGrouping
<TKey, TElement>> GetEnumerator() {
System\Linq\IQueryable.cs (8)
505
public static IQueryable<
IGrouping
<TKey,TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector) {
510
return source.Provider.CreateQuery<
IGrouping
<TKey,TSource>>(
518
public static IQueryable<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource, TElement>> elementSelector) {
525
return source.Provider.CreateQuery<
IGrouping
<TKey,TElement>>(
533
public static IQueryable<
IGrouping
<TKey, TSource>> GroupBy<TSource, TKey>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, IEqualityComparer<TKey> comparer) {
538
return source.Provider.CreateQuery<
IGrouping
<TKey,TSource>>(
546
public static IQueryable<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(this IQueryable<TSource> source, Expression<Func<TSource, TKey>> keySelector, Expression<Func<TSource,TElement>> elementSelector, IEqualityComparer<TKey> comparer) {
553
return source.Provider.CreateQuery<
IGrouping
<TKey,TElement>>(
System\Linq\Parallel\QueryOperators\Unary\GroupByQueryOperator.cs (19)
33
UnaryQueryOperator<TSource,
IGrouping
<TGroupKey, TElement>>
73
PartitionedStream<TSource, TKey> inputStream, IPartitionedStreamRecipient<
IGrouping
<TGroupKey, TElement>> recipient,
104
IPartitionedStreamRecipient<
IGrouping
<TGroupKey, TElement>> recipient,
108
PartitionedStream<
IGrouping
<TGroupKey, TElement>, TKey> outputStream =
109
new PartitionedStream<
IGrouping
<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer, OrdinalIndexState.Shuffled);
123
outputStream[i] = (QueryOperatorEnumerator<
IGrouping
<TGroupKey, TElement>, TKey>)(object)enumerator;
143
IPartitionedStreamRecipient<
IGrouping
<TGroupKey, TElement>> recipient,
147
PartitionedStream<
IGrouping
<TGroupKey, TElement>, TKey> outputStream =
148
new PartitionedStream<
IGrouping
<TGroupKey, TElement>, TKey>(partitionCount, hashStream.KeyComparer, OrdinalIndexState.Shuffled);
163
outputStream[i] = (QueryOperatorEnumerator<
IGrouping
<TGroupKey, TElement>, TKey>)(object)enumerator;
180
internal override QueryResults<
IGrouping
<TGroupKey, TElement>> Open(QuerySettings settings, bool preferStriping)
193
internal override IEnumerable<
IGrouping
<TGroupKey, TElement>> AsSequentialQuery(CancellationToken token)
199
return (IEnumerable<
IGrouping
<TGroupKey, TElement>>)(object)(wrappedChild.GroupBy(m_keySelector, m_keyComparer));
228
QueryOperatorEnumerator<
IGrouping
<TGroupKey, TElement>, TOrderKey>
263
internal override bool MoveNext(ref
IGrouping
<TGroupKey, TElement> currentElement, ref TOrderKey currentKey)
433
QueryOperatorEnumerator<
IGrouping
<TGroupKey, TElement>, TOrderKey>
473
internal override bool MoveNext(ref
IGrouping
<TGroupKey, TElement> currentElement, ref TOrderKey currentKey)
711
TGroupKey
IGrouping
<TGroupKey, TElement>.Key
764
TGroupKey
IGrouping
<TGroupKey, TElement>.Key
System\Linq\Parallel\Utils\Lookup.cs (8)
43
private IDictionary<TKey,
IGrouping
<TKey, TElement>> m_dict;
45
private
IGrouping
<TKey, TElement> m_defaultKeyGrouping = null;
50
m_dict = new Dictionary<TKey,
IGrouping
<TKey, TElement>>(m_comparer);
83
IGrouping
<TKey, TElement> grouping;
115
internal void Add(
IGrouping
<TKey, TElement> grouping)
131
public IEnumerator<
IGrouping
<TKey, TElement>> GetEnumerator()
136
foreach (
IGrouping
<TKey, TElement> grouping in m_dict.Values)
149
return ((IEnumerable<
IGrouping
<TKey, TElement>>)this).GetEnumerator();
System\Linq\ParallelEnumerable.cs (22)
1346
public static ParallelQuery<
IGrouping
<TKey, TSource>> GroupBy<TSource, TKey>(
1366
public static ParallelQuery<
IGrouping
<TKey, TSource>> GroupBy<TSource, TKey>(
1393
public static ParallelQuery<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(
1420
public static ParallelQuery<
IGrouping
<TKey, TElement>> GroupBy<TSource, TKey, TElement>(
1466
.Select<
IGrouping
<TKey, TSource>, TResult>(delegate(
IGrouping
<TKey, TSource> grouping) { return resultSelector(grouping.Key, grouping); });
1496
return source.GroupBy<TSource, TKey>(keySelector, comparer).Select<
IGrouping
<TKey, TSource>, TResult>(
1497
delegate(
IGrouping
<TKey, TSource> grouping) { return resultSelector(grouping.Key, grouping); });
1527
.Select<
IGrouping
<TKey, TElement>, TResult>(delegate(
IGrouping
<TKey, TElement> grouping) { return resultSelector(grouping.Key, grouping); });
1558
.Select<
IGrouping
<TKey, TElement>, TResult>(delegate(
IGrouping
<TKey, TElement> grouping) { return resultSelector(grouping.Key, grouping); });
5195
ParallelQuery<
IGrouping
<TKey, TSource>> groupings = source.GroupBy(keySelector, comparer);
5199
Contract.Assert(groupings is QueryOperator<
IGrouping
<TKey, TSource>>);
5200
QueryOperator<
IGrouping
<TKey, TSource>> op = groupings as QueryOperator<
IGrouping
<TKey, TSource>>;
5202
IEnumerator<
IGrouping
<TKey, TSource>> input = (op == null) ? groupings.GetEnumerator() : op.GetEnumerator(ParallelMergeOptions.FullyBuffered);
5282
ParallelQuery<
IGrouping
<TKey, TElement>> groupings = source.GroupBy(keySelector, elementSelector, comparer);
5286
Contract.Assert(groupings is QueryOperator<
IGrouping
<TKey, TElement>>);
5287
QueryOperator<
IGrouping
<TKey, TElement>> op = groupings as QueryOperator<
IGrouping
<TKey, TElement>>;
5289
IEnumerator<
IGrouping
<TKey, TElement>> input = (op == null) ? groupings.GetEnumerator() : op.GetEnumerator(ParallelMergeOptions.FullyBuffered);
System\Linq\SequenceQuery.cs (1)
282
return typeof(
IGrouping
<,>).MakeGenericType(t.GetGenericArguments());
System.Data.Entity (3)
System\Data\Objects\ELinq\InitializerFacet.cs (2)
221
typeof(
IGrouping
<,>).Equals(ClrType.GetGenericTypeDefinition()));
238
typeof(
IGrouping
<,>).Equals(ClrType.GetGenericTypeDefinition()));
System\Data\Query\InternalTrees\ColumnMapFactory.cs (1)
170
foreach (
var
memberGroup in memberInfo.GroupBy(tuple => tuple.Item2).OrderBy(tuple => tuple.Key))
System.Data.Linq (5)
SqlClient\Query\QueryConverter.cs (3)
1479
t.GetGenericTypeDefinition() == typeof(
IGrouping
<,>))
1591
Type elementType = typeof(
IGrouping
<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType);
1613
Type elementType = typeof(
IGrouping
<,>).MakeGenericType(keyExpr.ClrType, elemExpr.ClrType);
SqlClient\Reader\ObjectReaderCompiler.cs (2)
77
public static
IGrouping
<TKey, TElement> CreateGroup<TKey, TElement>(TKey key, IEnumerable<TElement> items) {
2973
K
IGrouping
<K, T>.Key {
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceWrapper.cs (1)
184
foreach (
var
group in groups)
System.Web.Extensions (1)
UI\WebResourceUtil.cs (1)
127
foreach (
var
g in groups) {