1 instantiation of PropertyHelper
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
532propertyHelpers.Add(new PropertyHelper(property));
33 references to PropertyHelper
Microsoft.AspNetCore.Mvc.Core (33)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
62foreach (var propertyHelper in PropertyHelper.GetProperties(controllerType.AsType()))
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (2)
122var properties = PropertyHelper.GetVisibleProperties(type); 127var mappedProperty = properties.FirstOrDefault(property =>
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (6)
217var propertyHelpers = PropertyHelper.GetVisibleProperties(propertyKey.ContainerType!); 220var propertyHelper = propertyHelpers[i]; 335var propertyHelpers = PropertyHelper.GetVisibleProperties(key.ModelType); 340var propertyHelper = propertyHelpers[i]; 356PropertyHelper propertyHelper) 369var getter = PropertyHelper.MakeNullSafeFastPropertyGetter(propertyHelper.Property);
src\Shared\PropertyActivator\PropertyActivator.cs (1)
23_fastPropertySetter = PropertyHelper.MakeFastPropertySetter(propertyInfo);
src\Shared\PropertyHelper\PropertyHelper.cs (22)
13[assembly: MetadataUpdateHandler(typeof(Microsoft.Extensions.Internal.PropertyHelper.MetadataUpdateHandler))] 26typeof(PropertyHelper).GetMethod(nameof(CallPropertyGetter), DeclaredOnlyLookup)!; 29typeof(PropertyHelper).GetMethod(nameof(CallPropertyGetterByReference), DeclaredOnlyLookup)!; 32typeof(PropertyHelper).GetMethod(nameof(CallNullSafePropertyGetter), DeclaredOnlyLookup)!; 35typeof(PropertyHelper).GetMethod(nameof(CallNullSafePropertyGetterByReference), DeclaredOnlyLookup)!; 38typeof(PropertyHelper).GetMethod(nameof(CallPropertySetter), DeclaredOnlyLookup)!; 41private static readonly ConcurrentDictionary<Type, PropertyHelper[]> PropertiesCache = new(); 43private static readonly ConcurrentDictionary<Type, PropertyHelper[]> VisiblePropertiesCache = new(); 49/// Initializes a fast <see cref="PropertyHelper"/>. 122public static PropertyHelper[] GetProperties( 143public static PropertyHelper[] GetVisibleProperties( 333foreach (var helper in GetProperties(value.GetType(), PropertiesCache)) 411public static PropertyHelper[] GetVisibleProperties( 413ConcurrentDictionary<Type, PropertyHelper[]>? allPropertiesCache, 414ConcurrentDictionary<Type, PropertyHelper[]>? visiblePropertiesCache) 424foreach (var propertyHelper in allProperties) 441var filteredProperties = new List<PropertyHelper>(allProperties.Length); 442foreach (var propertyHelper in allProperties) 492public static PropertyHelper[] GetProperties( 494ConcurrentDictionary<Type, PropertyHelper[]>? cache) 502var propertyHelpers = new List<PropertyHelper>(); 522List<PropertyHelper> propertyHelpers,