1 instantiation of PropertyHelper
Microsoft.AspNetCore.Mvc.Core (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
532
propertyHelpers.Add(new
PropertyHelper
(property));
33 references to PropertyHelper
Microsoft.AspNetCore.Mvc.Core (33)
ApplicationModels\DefaultApplicationModelProvider.cs (2)
62
foreach (
var
propertyHelper in
PropertyHelper
.GetProperties(controllerType.AsType()))
ModelBinding\Metadata\DefaultBindingMetadataProvider.cs (2)
122
var properties =
PropertyHelper
.GetVisibleProperties(type);
127
var
mappedProperty = properties.FirstOrDefault(property =>
ModelBinding\Metadata\DefaultModelMetadataProvider.cs (6)
217
var propertyHelpers =
PropertyHelper
.GetVisibleProperties(propertyKey.ContainerType!);
220
var
propertyHelper = propertyHelpers[i];
335
var propertyHelpers =
PropertyHelper
.GetVisibleProperties(key.ModelType);
340
var
propertyHelper = propertyHelpers[i];
356
PropertyHelper
propertyHelper)
369
var 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))]
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,