Table of Contents

Class DictionaryDataModel

Namespace
PolyType.Roslyn
Assembly
PolyType.Roslyn.dll

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

DictionaryInsertionMode

DictionaryKind

Gets the kind of the current dictionary model.

public required DictionaryKind DictionaryKind { get; init; }

Property Value

DictionaryKind

FactoryMethod

Constructor or static factory method.

public required IMethodSymbol? FactoryMethod { get; init; }

Property Value

IMethodSymbol

FactorySignature

The inferred signature of the factory method or constructor.

public required ImmutableArray<CollectionConstructorParameter> FactorySignature { get; init; }

Property Value

ImmutableArray<CollectionConstructorParameter>

KeyType

The type of key used by the dictionary. Is object if implementing IDictionary.

public required ITypeSymbol KeyType { get; init; }

Property Value

ITypeSymbol

Kind

Determines the type of TypeDataModel being used.

public override TypeDataKind Kind { get; }

Property Value

TypeDataKind

ValueType

The type of value used by the dictionary. Is object if implementing IDictionary.

public required ITypeSymbol ValueType { get; init; }

Property Value

ITypeSymbol