Table of Contents

Class Extensions

Namespace
GuildWars2
Assembly
GW2SDK.dll

Miscellaneous extension methods.

public static class Extensions
Inheritance
Extensions
Inherited Members

Methods

AsDictionary<TKey, TValue>(Task<(HashSet<TValue> Value, MessageContext Context)>, Func<TValue, TKey>)

Returns a new task that converts the HashSet<T> from the original task to a Dictionary<TKey, TValue>.

ValueOnly<T>(IAsyncEnumerable<(T, MessageContext)>, CancellationToken)

Returns a new IAsyncEnumerable that only returns the value of the original IAsyncEnumerable, discarding the message context.

ValueOnly<T>(Task<(T, MessageContext)>)

Returns a new task that only returns the value of the original task, discarding the message context.