1 instantiation of PropertyHelper
Microsoft.AspNetCore.Components.Endpoints (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
532
propertyHelpers.Add(new
PropertyHelper
(property));
25 references to PropertyHelper
Microsoft.AspNetCore.Components.Endpoints (25)
FormMapping\Metadata\FormDataMetadataFactory.cs (2)
186
var candidateProperty =
PropertyHelper
.GetVisibleProperties(type);
187
foreach (
var
propertyHelper in candidateProperty)
Results\RazorComponentResult.cs (1)
63
: (IReadOnlyDictionary<string, object?>)
PropertyHelper
.ObjectToDictionary(parameters);
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,