2 writes to PropertyInfo
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PagePropertyModel.cs (2)
26
PropertyInfo
= propertyInfo ?? throw new ArgumentNullException(nameof(propertyInfo));
40
PropertyInfo
= other.PropertyInfo;
24 references to PropertyInfo
Microsoft.AspNetCore.Mvc.RazorPages (6)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (2)
135
Property = propertyModel.
PropertyInfo
,
138
ParameterType = propertyModel.
PropertyInfo
.PropertyType,
ApplicationModels\PagePropertyModel.cs (4)
19
/// <param name="propertyInfo">The <see cref="
PropertyInfo
"/> for the underlying property.</param>
40
PropertyInfo = other.
PropertyInfo
;
48
MemberInfo ICommonModel.MemberInfo =>
PropertyInfo
;
51
/// The <see cref="
PropertyInfo
"/>.
Microsoft.AspNetCore.Mvc.RazorPages.Test (18)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
338
Assert.Same(propertyModel.
PropertyInfo
, p.Property);
387
Assert.Same(propertyModel1.
PropertyInfo
, p.Property);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (16)
146
.Where(p => p.
PropertyInfo
.DeclaringType.GetTypeInfo() == typeInfo);
151
Assert.Equal(typeInfo.GetProperty(nameof(PageWithModelWithoutPageModelAttribute.Model)), property.
PropertyInfo
);
156
Assert.Equal(typeInfo.GetProperty(nameof(PageWithModelWithoutPageModelAttribute.Property1)), property.
PropertyInfo
);
162
Assert.Equal(typeInfo.GetProperty(nameof(PageWithModelWithoutPageModelAttribute.Property2)), property.
PropertyInfo
);
204
Assert.Equal(modelType.GetProperty(nameof(ModelWithPageModelAttribute.Property)), property.
PropertyInfo
);
248
Assert.Equal(typeof(ModelLevel3).GetProperty(name), property.
PropertyInfo
);
255
Assert.Equal(typeof(ModelLevel3).GetProperty(name), property.
PropertyInfo
);
345
Assert.Equal(modelType.GetProperty(name), property.
PropertyInfo
);
352
Assert.Equal(modelType.GetProperty(name), property.
PropertyInfo
);
360
Assert.Equal(modelType.GetProperty(name), property.
PropertyInfo
);
585
p => p.
PropertyInfo
== modelType.GetProperty(nameof(ModelWithHandler.BindMe)));
630
.Where(p => p.
PropertyInfo
.DeclaringType.GetTypeInfo() == typeInfo);
633
p => Assert.Equal(typeInfo.GetProperty(nameof(PageWithHandler.BindMe)), p.
PropertyInfo
),
634
p => Assert.Equal(typeInfo.GetProperty(nameof(PageWithHandler.Model)), p.
PropertyInfo
));
953
Assert.Equal(typeof(HidesAProperty).GetTypeInfo(), p.
PropertyInfo
.DeclaringType.GetTypeInfo());
986
Assert.Equal(typeInfo.GetProperty(nameof(ModelSupportsGetOnProperty.Property)), p.
PropertyInfo
);