2 writes to MethodInfo
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageHandlerModel.cs (2)
25
MethodInfo
= handlerMethod ?? throw new ArgumentNullException(nameof(handlerMethod));
40
MethodInfo
= other.MethodInfo;
25 references to MethodInfo
Microsoft.AspNetCore.Mvc.RazorPages (4)
ApplicationModels\CompiledPageActionDescriptorBuilder.cs (1)
88
MethodInfo = handlerModel.
MethodInfo
,
ApplicationModels\DefaultPageApplicationModelPartsProvider.cs (1)
56
var methodParameters = handlerModel.
MethodInfo
.GetParameters();
ApplicationModels\PageHandlerModel.cs (2)
40
MethodInfo = other.
MethodInfo
;
91
MemberInfo ICommonModel.MemberInfo =>
MethodInfo
;
Microsoft.AspNetCore.Mvc.RazorPages.Test (21)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (2)
92
Assert.Equal(pageApplicationModel.HandlerMethods.Select(p => p.
MethodInfo
), actual.HandlerMethods.Select(p => p.MethodInfo));
235
Assert.Equal(handlerModel.
MethodInfo
, d.MethodInfo);
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (19)
302
Assert.Equal(typeInfo.GetMethod(name), handler.
MethodInfo
);
310
Assert.Equal(typeInfo.GetMethod(name), handler.
MethodInfo
);
318
Assert.Equal(typeInfo.GetMethod(name), handler.
MethodInfo
);
434
Assert.Equal(modelType.GetMethod(name), handler.
MethodInfo
);
589
p => Assert.Equal(modelType.GetMethod(nameof(ModelWithHandler.OnGet)), p.
MethodInfo
));
638
p => Assert.Equal(typeInfo.GetMethod(nameof(PageWithHandler.OnGet)), p.
MethodInfo
));
682
handlerMethods.OrderBy(h => h.
MethodInfo
.DeclaringType.Name).ThenBy(h => h.
MethodInfo
.Name),
685
Assert.Equal(nameof(InheritsMethods.OnGet), handler.
MethodInfo
.Name);
686
Assert.Equal(typeInfo, handler.
MethodInfo
.DeclaringType.GetTypeInfo());
690
Assert.Equal(nameof(TestSetPageModel.OnGet), handler.
MethodInfo
.Name);
691
Assert.Equal(baseType, handler.
MethodInfo
.DeclaringType);
695
Assert.Equal(nameof(TestSetPageModel.OnPost), handler.
MethodInfo
.Name);
696
Assert.Equal(baseType, handler.
MethodInfo
.DeclaringType);
785
handler => Assert.Same(expected, handler.
MethodInfo
));
815
handler => Assert.Same(expected, handler.
MethodInfo
));
843
handler => Assert.Same(expected, handler.
MethodInfo
));
872
handlerMethods.OrderBy(h => h.
MethodInfo
.Name),
875
Assert.Same(typeInfo.GetMethod(nameof(PageModelWithHandlerNames.OnPutDeleteAsync)), handler.
MethodInfo
);