Class DictionaryDataModel
Dictionary data model for types implementing IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> or IDictionary.
public sealed class DictionaryDataModel : TypeDataModel
- Inheritance
-
DictionaryDataModel
- Inherited Members
Properties
AvailableInsertionModes
Gets the available insertion modes supported by the dictionary type if mutable.
public required DictionaryInsertionMode AvailableInsertionModes { get; init; }
Property Value
DictionaryKind
Gets the kind of the current dictionary model.
public required DictionaryKind DictionaryKind { get; init; }
Property Value
FactoryMethod
Constructor or static factory method.
public required IMethodSymbol? FactoryMethod { get; init; }
Property Value
FactorySignature
The inferred signature of the factory method or constructor.
public required ImmutableArray<CollectionConstructorParameter> FactorySignature { get; init; }
Property Value
KeyType
The type of key used by the dictionary. Is object if implementing IDictionary.
public required ITypeSymbol KeyType { get; init; }
Property Value
Kind
Determines the type of TypeDataModel being used.
public override TypeDataKind Kind { get; }
Property Value
ValueType
The type of value used by the dictionary. Is object if implementing IDictionary.
public required ITypeSymbol ValueType { get; init; }