Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

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: 0x02000042 RID: 66
[Token(Token = "0x2000042")]
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: 0x17000044 RID: 68
[Token(Token = "0x17000044")]
IEnumerable<TElement> this[TKey key]
{
[Token(Token = "0x600021C")]
[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: 0x0600021D RID: 541
[Token(Token = "0x600021D")]
[Address(Slot = "1")]
bool Contains(TKey key);
}
}