4 instantiations of PropertySetter
Microsoft.AspNetCore.Components (4)
ComponentFactory.cs (1)
130injectables.Add((property.Name, property.PropertyType, new PropertySetter(type, property), injectAttribute.Key));
PersistentState\PersistentServicesRegistry.cs (1)
207var propertySetter = new PropertySetter(targetType, propertyInfo);
Reflection\ComponentProperties.cs (2)
325var propertySetter = new PropertySetter(targetType, propertyInfo) 356CaptureUnmatchedValuesWriter = new PropertySetter(targetType, propertyInfo);
16 references to PropertySetter
Microsoft.AspNetCore.Components (16)
ComponentFactory.cs (1)
120List<(string name, Type propertyType, PropertySetter setter, object? serviceKey)>? injectables = null;
PersistentState\PersistentServicesRegistry.cs (4)
162private readonly Dictionary<string, (PropertySetter, PropertyGetter, RestoreOptions)> _underlyingAccessors; 167_underlyingAccessors = new Dictionary<string, (PropertySetter, PropertyGetter, RestoreOptions)>(StringComparer.OrdinalIgnoreCase); 207var propertySetter = new PropertySetter(targetType, propertyInfo); 239internal (PropertySetter setter, PropertyGetter getter, RestoreOptions options) GetAccessor(string key) =>
Reflection\ComponentProperties.cs (10)
55if (!writers.TryGetValue(parameterName, out var writer)) 110if (writers.TryGetValue(parameterName, out var writer)) 172static void SetProperty(object target, PropertySetter writer, string parameterName, object value) 279private readonly Dictionary<string, PropertySetter> _underlyingWriters; 280private readonly ConcurrentDictionary<string, PropertySetter?> _referenceEqualityWritersCache; 284_underlyingWriters = new Dictionary<string, PropertySetter>(StringComparer.OrdinalIgnoreCase); 285_referenceEqualityWritersCache = new ConcurrentDictionary<string, PropertySetter?>(ReferenceEqualityComparer.Instance); 325var propertySetter = new PropertySetter(targetType, propertyInfo) 362public PropertySetter? CaptureUnmatchedValuesWriter { get; } 366public bool TryGetValue(string parameterName, [MaybeNullWhen(false)] out PropertySetter writer)
Reflection\PropertySetter.cs (1)
13typeof(PropertySetter).GetMethod(nameof(CallPropertySetter), BindingFlags.NonPublic | BindingFlags.Static)!;