Show / Hide Table of Contents

Interface IReadOnlyTypeMap<TValue>

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

Namespace: DotNext.Collections.Specialized
Assembly: DotNext.dll
Syntax
public interface IReadOnlyTypeMap<TValue>
Type Parameters
Name Description
TValue

The type of the values in the map.

Methods

| Edit this page View Source

ContainsKey<TKey>()

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

Declaration
bool ContainsKey<TKey>()
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.

| Edit this page View Source

TryGetValue<TKey>(out TValue)

Attempts to get the value associated with the specified type.

Declaration
bool TryGetValue<TKey>(out TValue value)
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.GetUserData<T>(T)
BasicExtensions.IsBetween<T, TLowerBound, TUpperBound>(T, TLowerBound, TUpperBound)
BasicExtensions.IsOneOf<T>(T, ReadOnlySpan<T>)
ExpressionBuilder.Const<T>(T)
AsyncLockAcquisition.AcquireLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireReadLockAsync<T>(T, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, bool, TimeSpan, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, CancellationToken)
AsyncLockAcquisition.AcquireWriteLockAsync<T>(T, TimeSpan, CancellationToken)
LockAcquisition.AcquireReadLock<T>(T)
LockAcquisition.AcquireReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireUpgradeableReadLock<T>(T)
LockAcquisition.AcquireUpgradeableReadLock<T>(T, TimeSpan)
LockAcquisition.AcquireWriteLock<T>(T)
LockAcquisition.AcquireWriteLock<T>(T, TimeSpan)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾