| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?xml version="1.0" encoding="utf-8"?>
- <Type Name="IGrouping<TKey,TElement>" FullName="System.Linq.IGrouping<TKey,TElement>">
- <TypeSignature Language="C#" Value="public interface IGrouping<out TKey,out TElement> : System.Collections.Generic.IEnumerable<out TElement>" />
- <TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IGrouping`2<+ TKey, + TElement> implements class System.Collections.Generic.IEnumerable`1<!TElement>, class System.Collections.IEnumerable" />
- <AssemblyInfo>
- <AssemblyName>System.Core</AssemblyName>
- <AssemblyVersion>3.5.0.0</AssemblyVersion>
- <AssemblyVersion>4.0.0.0</AssemblyVersion>
- </AssemblyInfo>
- <TypeParameters>
- <TypeParameter Name="TKey">
- <Constraints>
- <ParameterAttribute>Covariant</ParameterAttribute>
- </Constraints>
- </TypeParameter>
- <TypeParameter Name="TElement">
- <Constraints>
- <ParameterAttribute>Covariant</ParameterAttribute>
- </Constraints>
- </TypeParameter>
- </TypeParameters>
- <Interfaces>
- <Interface>
- <InterfaceName>System.Collections.Generic.IEnumerable<TElement></InterfaceName>
- </Interface>
- </Interfaces>
- <Docs>
- <typeparam name="TKey">To be added.</typeparam>
- <typeparam name="TElement">To be added.</typeparam>
- <remarks>
- <attribution license="cc4" from="Microsoft" modified="false" />
- <para>An <see cref="T:System.Linq.IGrouping`2" /> is an <see cref="T:System.Collections.Generic.IEnumerable`1" /> that additionally has a key. The key represents the attribute that is common to each value in the <see cref="T:System.Linq.IGrouping`2" />.</para>
- <para>The values of an <see cref="T:System.Linq.IGrouping`2" /> are accessed much as the elements of an <see cref="T:System.Collections.Generic.IEnumerable`1" /> are accessed. For example, you can access the values by using a foreach in csprcs or For Each in vbprvb loop to iterate through the <see cref="T:System.Linq.IGrouping`2" /> object. The Example section contains a code example that shows you how to access both the key and the values of an <see cref="T:System.Linq.IGrouping`2" /> object.</para>
- <para>The <see cref="T:System.Linq.IGrouping`2" /> type is used by the <see cref="Overload:System.Linq.Enumerable.GroupBy" /> standard query operator methods, which return a sequence of elements of type <see cref="T:System.Linq.IGrouping`2" />.</para>
- </remarks>
- <summary>
- <attribution license="cc4" from="Microsoft" modified="false" />
- <para>Represents a collection of objects that have a common key.</para>
- </summary>
- </Docs>
- <Members>
- <Member MemberName="Key">
- <MemberSignature Language="C#" Value="public TKey Key { get; }" />
- <MemberSignature Language="ILAsm" Value=".property instance !TKey Key" />
- <MemberType>Property</MemberType>
- <AssemblyInfo>
- <AssemblyVersion>3.5.0.0</AssemblyVersion>
- <AssemblyVersion>4.0.0.0</AssemblyVersion>
- </AssemblyInfo>
- <ReturnValue>
- <ReturnType>TKey</ReturnType>
- </ReturnValue>
- <Docs>
- <value>To be added.</value>
- <remarks>
- <attribution license="cc4" from="Microsoft" modified="false" />
- <para>The key of an <see cref="T:System.Linq.IGrouping`2" /> represents the attribute that is common to each value in the <see cref="T:System.Linq.IGrouping`2" />.</para>
- </remarks>
- <summary>
- <attribution license="cc4" from="Microsoft" modified="false" />
- <para>Gets the key of the <see cref="T:System.Linq.IGrouping`2" />.</para>
- </summary>
- </Docs>
- </Member>
- </Members>
- </Type>
|