1 instantiation of DictionarySpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Parser.cs (1)
446
return new
DictionarySpec
(type)
11 references to DictionarySpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (11)
ConfigurationBindingGenerator.Parser.cs (1)
374
Debug.Assert(spec is
DictionarySpec
or UnsupportedTypeSpec or null);
Emitter\CoreBindingHelpers.cs (3)
290
case
DictionarySpec
dictionaryType:
768
private void EmitBindCoreImplForDictionary(
DictionarySpec
type)
1249
&& type is CollectionSpec and not
DictionarySpec
Specs\BindingHelperInfo.cs (1)
132
case
DictionarySpec
dictionarySpec:
Specs\TypeIndex.cs (6)
26
DictionarySpec
dictionarySpec => KeyIsSupported(dictionarySpec),
41
DictionarySpec
dictSpec => KeyIsSupported(dictSpec) && CanBindTo(dictSpec.ElementTypeRef),
54
Debug.Assert(typeSpec is not
DictionarySpec
, "Dictionary entries are bound in place, not constructed.");
76
bool IsDictWithUnsupportedKey() => propTypeSpec is
DictionarySpec
dictionarySpec && !KeyIsSupported(dictionarySpec);
130
string keyTypeDisplayString = ((
DictionarySpec
)type).KeyTypeRef.FullyQualifiedName;
134
public bool KeyIsSupported(
DictionarySpec
typeSpec) =>