4 instantiations of PropertySetter
Microsoft.AspNetCore.Components (4)
DefaultComponentPropertyActivator.cs (1)
61
injectables.Add((property.Name, property.PropertyType, new
PropertySetter
(type, property), injectAttribute.Key));
PersistentState\PersistentServicesRegistry.cs (1)
225
var propertySetter = new
PropertySetter
(targetType, propertyInfo);
Reflection\ComponentProperties.cs (2)
335
var propertySetter = new
PropertySetter
(targetType, propertyInfo)
366
CaptureUnmatchedValuesWriter = new
PropertySetter
(targetType, propertyInfo);
16 references to PropertySetter
Microsoft.AspNetCore.Components (16)
DefaultComponentPropertyActivator.cs (1)
51
List<(string name, Type propertyType,
PropertySetter
setter, object? serviceKey)>? injectables = null;
PersistentState\PersistentServicesRegistry.cs (4)
180
private readonly Dictionary<string, (
PropertySetter
, PropertyGetter, RestoreOptions)> _underlyingAccessors;
185
_underlyingAccessors = new Dictionary<string, (
PropertySetter
, PropertyGetter, RestoreOptions)>(StringComparer.OrdinalIgnoreCase);
225
var
propertySetter = new PropertySetter(targetType, propertyInfo);
257
internal (
PropertySetter
setter, PropertyGetter getter, RestoreOptions options) GetAccessor(string key) =>
Reflection\ComponentProperties.cs (10)
55
if (!writers.TryGetValue(parameterName, out
var
writer))
116
if (writers.TryGetValue(parameterName, out
var
writer))
182
static void SetProperty(object target,
PropertySetter
writer, string parameterName, object value)
289
private readonly Dictionary<string,
PropertySetter
> _underlyingWriters;
290
private readonly ConcurrentDictionary<string,
PropertySetter
?> _referenceEqualityWritersCache;
294
_underlyingWriters = new Dictionary<string,
PropertySetter
>(StringComparer.OrdinalIgnoreCase);
295
_referenceEqualityWritersCache = new ConcurrentDictionary<string,
PropertySetter
?>(ReferenceEqualityComparer.Instance);
335
var
propertySetter = new PropertySetter(targetType, propertyInfo)
372
public
PropertySetter
? CaptureUnmatchedValuesWriter { get; }
376
public bool TryGetValue(string parameterName, [MaybeNullWhen(false)] out
PropertySetter
writer)
src\aspnetcore\src\Components\Shared\src\Reflection\PropertySetter.cs (1)
13
typeof(
PropertySetter
).GetMethod(nameof(CallPropertySetter), BindingFlags.NonPublic | BindingFlags.Static)!;