IGrouping`2.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Type Name="IGrouping&lt;TKey,TElement&gt;" FullName="System.Linq.IGrouping&lt;TKey,TElement&gt;">
  3. <TypeSignature Language="C#" Value="public interface IGrouping&lt;out TKey,out TElement&gt; : System.Collections.Generic.IEnumerable&lt;out TElement&gt;" />
  4. <TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IGrouping`2&lt;+ TKey, + TElement&gt; implements class System.Collections.Generic.IEnumerable`1&lt;!TElement&gt;, class System.Collections.IEnumerable" />
  5. <AssemblyInfo>
  6. <AssemblyName>System.Core</AssemblyName>
  7. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  8. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  9. </AssemblyInfo>
  10. <TypeParameters>
  11. <TypeParameter Name="TKey">
  12. <Constraints>
  13. <ParameterAttribute>Covariant</ParameterAttribute>
  14. </Constraints>
  15. </TypeParameter>
  16. <TypeParameter Name="TElement">
  17. <Constraints>
  18. <ParameterAttribute>Covariant</ParameterAttribute>
  19. </Constraints>
  20. </TypeParameter>
  21. </TypeParameters>
  22. <Interfaces>
  23. <Interface>
  24. <InterfaceName>System.Collections.Generic.IEnumerable&lt;TElement&gt;</InterfaceName>
  25. </Interface>
  26. </Interfaces>
  27. <Docs>
  28. <typeparam name="TKey">To be added.</typeparam>
  29. <typeparam name="TElement">To be added.</typeparam>
  30. <remarks>
  31. <attribution license="cc4" from="Microsoft" modified="false" />
  32. <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>
  33. <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>
  34. <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>
  35. </remarks>
  36. <summary>
  37. <attribution license="cc4" from="Microsoft" modified="false" />
  38. <para>Represents a collection of objects that have a common key.</para>
  39. </summary>
  40. </Docs>
  41. <Members>
  42. <Member MemberName="Key">
  43. <MemberSignature Language="C#" Value="public TKey Key { get; }" />
  44. <MemberSignature Language="ILAsm" Value=".property instance !TKey Key" />
  45. <MemberType>Property</MemberType>
  46. <AssemblyInfo>
  47. <AssemblyVersion>3.5.0.0</AssemblyVersion>
  48. <AssemblyVersion>4.0.0.0</AssemblyVersion>
  49. </AssemblyInfo>
  50. <ReturnValue>
  51. <ReturnType>TKey</ReturnType>
  52. </ReturnValue>
  53. <Docs>
  54. <value>To be added.</value>
  55. <remarks>
  56. <attribution license="cc4" from="Microsoft" modified="false" />
  57. <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>
  58. </remarks>
  59. <summary>
  60. <attribution license="cc4" from="Microsoft" modified="false" />
  61. <para>Gets the key of the <see cref="T:System.Linq.IGrouping`2" />.</para>
  62. </summary>
  63. </Docs>
  64. </Member>
  65. </Members>
  66. </Type>