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