ConfigurationBinder.cs (22)
99return bindingPoint.Value;
317if (!propertyBindingPoint.IsReadOnly && (propertyBindingPoint.Value is not null || propertyBindingPoint.HasNewValue))
319property.SetValue(instance, propertyBindingPoint.Value);
367if (type == typeof(byte[]) && bindingPoint.Value is byte[] byteArray && byteArray.Length > 0)
391bindingPoint.SetValue(BindArray(type, (IEnumerable?)bindingPoint.Value, config, options));
410if (!bindingPoint.IsReadOnly || bindingPoint.Value is not null)
412object? newValue = BindSet(type, (IEnumerable?)bindingPoint.Value, config, options);
434if (!bindingPoint.IsReadOnly || bindingPoint.Value is not null)
436object? newValue = BindDictionaryInterface(bindingPoint.Value, type, config, options);
449if (bindingPoint.Value is null)
472Debug.Assert(bindingPoint.Value is not null);
480BindDictionary(bindingPoint.Value, dictionaryInterface, config, options);
487BindCollection(bindingPoint.Value, collectionInterface, config, options);
491BindProperties(bindingPoint.Value, config, options, constructorParameters);
511else if (!bindingPoint.IsReadOnly && bindingPoint.Value is null)
527bindingPoint.TrySetValue(bindingPoint.Value); // force setting null value
796indexerProperty.SetValue(dictionary, valueBindingPoint.Value, new object[] { key });
835addMethod?.Invoke(collection, new[] { itemBindingPoint.Value });
891list.Add(itemBindingPoint.Value);
960arguments[0] = itemBindingPoint.Value;
1160if (propertyBindingPoint.Value is null)
1172return propertyBindingPoint.Value;