1 instantiation of PropertyHelper
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
532propertyHelpers.Add(new PropertyHelper(property));
33 references to PropertyHelper
Microsoft.AspNetCore.Http.Abstractions (32)
Routing\RouteValueDictionary.cs (10)
44private static readonly ConcurrentDictionary<Type, PropertyHelper[]> _propertyCache = new ConcurrentDictionary<Type, PropertyHelper[]>(); 685var property = storage.Properties[i]; 858var property = storage.Properties[_index]; 883public readonly PropertyHelper[] Properties; 894Properties = PropertyHelper.GetVisibleProperties(type, allPropertiesCache: null, visiblePropertiesCache: null); 900private static void ValidatePropertyNames(Type type, PropertyHelper[] properties) 902var names = new Dictionary<string, PropertyHelper>(StringComparer.OrdinalIgnoreCase); 905var property = properties[i]; 907if (names.TryGetValue(property.Name, out var duplicate))
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,
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
187foreach (var propertyHelper in candidateProperty)