1 write to Property
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\PropertyHelper\PropertyHelper.cs (1)
54
Property
= property ?? throw new ArgumentNullException(nameof(property));
24 references to Property
Microsoft.AspNetCore.Shared.Tests (24)
PropertyHelperTest.cs (20)
19
var property = PropertyHelper.GetProperties(anonymous.GetType()).First().
Property
;
34
var property = PropertyHelper.GetProperties(anonymous.GetType()).First().
Property
;
49
var property = PropertyHelper.GetProperties(anonymous.GetType()).First().
Property
;
97
var property = PropertyHelper.GetProperties(anonymous.GetType()).First().
Property
;
347
Assert.Equal(typeof(int), property.
Property
.PropertyType);
362
Assert.Equal(typeof(string), result[0].
Property
.PropertyType);
364
Assert.Equal(typeof(string), result[1].
Property
.PropertyType);
379
Assert.Equal(typeof(Guid), result[0].
Property
.PropertyType);
381
Assert.Equal(typeof(string), result[1].
Property
.PropertyType);
396
Assert.Equal(typeof(int), property.
Property
.PropertyType);
411
Assert.Equal(typeof(string), result[0].
Property
.PropertyType);
413
Assert.Equal(typeof(string), result[1].
Property
.PropertyType);
428
Assert.Equal(typeof(Guid), result[0].
Property
.PropertyType);
430
Assert.Equal(typeof(string), result[1].
Property
.PropertyType);
493
var accessor = PropertyHelper.MakeFastPropertyGetter(property.
Property
);
507
var accessor = PropertyHelper.MakeFastPropertyGetter(property.
Property
);
521
var accessor = PropertyHelper.MakeNullSafeFastPropertyGetter(property.
Property
);
538
var accessor = PropertyHelper.MakeNullSafeFastPropertyGetter(property.
Property
);
555
var accessor = PropertyHelper.MakeNullSafeFastPropertyGetter(property.
Property
);
572
var accessor = PropertyHelper.MakeNullSafeFastPropertyGetter(property.
Property
);
src\Shared\PropertyHelper\PropertyHelper.cs (4)
76
return _valueGetter ??= MakeFastPropertyGetter(
Property
);
88
return _valueSetter ??= MakeFastPropertySetter(
Property
);
426
if (propertyHelper.
Property
.DeclaringType != type)
444
var declaringType = propertyHelper.
Property
.DeclaringType;