Show / Hide Table of Contents

Interface IReadOnlyTypeMap<TValue>

Represents read-only view of the dictionary where the values are associated with the types.

Inherited Members
IEnumerable<TValue>.GetEnumerator()
Namespace: DotNext.Collections.Specialized
Assembly: DotNext.dll
Syntax
public interface IReadOnlyTypeMap<TValue> : IEnumerable<TValue>, IEnumerable
Type Parameters
Name Description
TValue

The type of the values in the map.

Methods

View Source

ContainsKey<TKey>()

Determines whether the map has association between the value and the specified type.

Declaration
bool ContainsKey<TKey>() where TKey : allows ref struct
Returns
Type Description
bool

true if there is a value associated with TKey; otherwise, false.

Type Parameters
Name Description
TKey

The type acting as a key.

View Source

TryGetValue<TKey>(out TValue)

Attempts to get the value associated with the specified type.

Declaration
bool TryGetValue<TKey>(out TValue value) where TKey : allows ref struct
Parameters
Type Name Description
TValue value

The value associated with the type.

Returns
Type Description
bool

true if there is a value associated with TKey; otherwise, false.

Type Parameters
Name Description
TKey

The type acting as a key.

Extension Methods

BasicExtensions.As<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, params ReadOnlySpan<T>)
Collection.Append<T>(IEnumerable<T>, params T[])
Collection.Copy<T>(IEnumerable<T>, int, MemoryAllocator<T>?)
Collection.FirstOrNone<T>(IEnumerable<T>)
Collection.ForEachAsync<T>(IEnumerable<T>, Func<T, CancellationToken, ValueTask>, CancellationToken)
Collection.ForEach<T>(IEnumerable<T>, Action<T>)
Collection.LastOrNone<T>(IEnumerable<T>)
Collection.Prepend<T>(IEnumerable<T>, params T[])
Collection.SequenceHashCode<T>(IEnumerable<T>, bool)
Collection.ToAsyncEnumerable<T>(IEnumerable<T>, bool)
Collection.ToString<T>(IEnumerable<T>, string, string)
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾