37 lines
1.8 KiB
C#
37 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Linq
|
|
{
|
|
/// <summary>Defines an indexer, size property, and Boolean search method for data structures that map keys to <see cref="T:System.Collections.Generic.IEnumerable`1" /> sequences of values.</summary>
|
|
/// <typeparam name="TKey">The type of the keys in the <see cref="T:System.Linq.ILookup`2" />.</typeparam>
|
|
/// <typeparam name="TElement">The type of the elements in the <see cref="T:System.Collections.Generic.IEnumerable`1" /> sequences that make up the values in the <see cref="T:System.Linq.ILookup`2" />.</typeparam>
|
|
// Token: 0x0200003D RID: 61
|
|
[Token(Token = "0x200003D")]
|
|
public interface ILookup<TKey, TElement> : IEnumerable<IGrouping<TKey, TElement>>, IEnumerable
|
|
{
|
|
/// <summary>Gets the <see cref="T:System.Collections.Generic.IEnumerable`1" /> sequence of values indexed by a specified key.</summary>
|
|
/// <param name="key">The key of the desired sequence of values.</param>
|
|
/// <returns>The <see cref="T:System.Collections.Generic.IEnumerable`1" /> sequence of values indexed by the specified key.</returns>
|
|
// Token: 0x17000037 RID: 55
|
|
[Token(Token = "0x17000037")]
|
|
IEnumerable<TElement> this[TKey key]
|
|
{
|
|
[Token(Token = "0x60001E1")]
|
|
[Address(Slot = "0")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Determines whether a specified key exists in the <see cref="T:System.Linq.ILookup`2" />.</summary>
|
|
/// <param name="key">The key to search for in the <see cref="T:System.Linq.ILookup`2" />.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="key" /> is in the <see cref="T:System.Linq.ILookup`2" />; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x060001E2 RID: 482
|
|
[Token(Token = "0x60001E2")]
|
|
[Address(Slot = "1")]
|
|
bool Contains(TKey key);
|
|
}
|
|
}
|