Interface IDictionaryTypeShape
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Provides a strongly typed shape model for a .NET type that is a dictionary.
public interface IDictionaryTypeShape : ITypeShape
- Inherited Members
Remarks
Typically covers types implementing interfaces such as IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> or IDictionary.
Properties
ConstructionStrategy
Gets the construction strategy for the given collection.
CollectionConstructionStrategy ConstructionStrategy { get; }
Property Value
KeyType
Gets the shape of the underlying key type.
ITypeShape KeyType { get; }
Property Value
Remarks
For non-generic dictionaries this returns the shape for object.
ValueType
Gets the shape of the underlying value type.
ITypeShape ValueType { get; }
Property Value
Remarks
For non-generic dictionaries this returns the shape for object.