1 instantiation of PropertyHelper
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
532
propertyHelpers.Add(new
PropertyHelper
(property));
33 references to PropertyHelper
Microsoft.AspNetCore.Http.Abstractions (32)
Routing\RouteValueDictionary.cs (10)
44
private static readonly ConcurrentDictionary<Type,
PropertyHelper
[]> _propertyCache = new ConcurrentDictionary<Type,
PropertyHelper
[]>();
685
var
property = storage.Properties[i];
858
var
property = storage.Properties[_index];
883
public readonly
PropertyHelper
[] Properties;
894
Properties =
PropertyHelper
.GetVisibleProperties(type, allPropertiesCache: null, visiblePropertiesCache: null);
900
private static void ValidatePropertyNames(Type type,
PropertyHelper
[] properties)
902
var names = new Dictionary<string,
PropertyHelper
>(StringComparer.OrdinalIgnoreCase);
905
var
property = properties[i];
907
if (names.TryGetValue(property.Name, out
var
duplicate))
src\Shared\PropertyHelper\PropertyHelper.cs (22)
13
[assembly: MetadataUpdateHandler(typeof(Microsoft.Extensions.Internal.
PropertyHelper
.MetadataUpdateHandler))]
26
typeof(
PropertyHelper
).GetMethod(nameof(CallPropertyGetter), DeclaredOnlyLookup)!;
29
typeof(
PropertyHelper
).GetMethod(nameof(CallPropertyGetterByReference), DeclaredOnlyLookup)!;
32
typeof(
PropertyHelper
).GetMethod(nameof(CallNullSafePropertyGetter), DeclaredOnlyLookup)!;
35
typeof(
PropertyHelper
).GetMethod(nameof(CallNullSafePropertyGetterByReference), DeclaredOnlyLookup)!;
38
typeof(
PropertyHelper
).GetMethod(nameof(CallPropertySetter), DeclaredOnlyLookup)!;
41
private static readonly ConcurrentDictionary<Type,
PropertyHelper
[]> PropertiesCache = new();
43
private static readonly ConcurrentDictionary<Type,
PropertyHelper
[]> VisiblePropertiesCache = new();
49
/// Initializes a fast <see cref="
PropertyHelper
"/>.
122
public static
PropertyHelper
[] GetProperties(
143
public static
PropertyHelper
[] GetVisibleProperties(
333
foreach (
var
helper in GetProperties(value.GetType(), PropertiesCache))
411
public static
PropertyHelper
[] GetVisibleProperties(
413
ConcurrentDictionary<Type,
PropertyHelper
[]>? allPropertiesCache,
414
ConcurrentDictionary<Type,
PropertyHelper
[]>? visiblePropertiesCache)
424
foreach (
var
propertyHelper in allProperties)
441
var filteredProperties = new List<
PropertyHelper
>(allProperties.Length);
442
foreach (
var
propertyHelper in allProperties)
492
public static
PropertyHelper
[] GetProperties(
494
ConcurrentDictionary<Type,
PropertyHelper
[]>? cache)
502
var propertyHelpers = new List<
PropertyHelper
>();
522
List<
PropertyHelper
> propertyHelpers,
Microsoft.AspNetCore.Http.Extensions (1)
src\Components\Endpoints\src\FormMapping\Metadata\FormDataMetadataFactory.cs (1)
187
foreach (
var
propertyHelper in candidateProperty)