905 references to GetMethod
Aspire.RabbitMQ.Client.v7.Tests (2)
tests\Aspire.RabbitMQ.Client.Tests\AspireRabbitMQLoggingTests.cs (2)
211s_log.GetType().GetMethod("Info")!.Invoke(s_log, new object[] { message }); 219s_log.GetType().GetMethod("Warn")!.Invoke(s_log, new object[] { message });
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
183MethodInfo findMethod = keyedByTypeCollectionType.GetMethod("Find"); 197MethodInfo getXmlMappingsMethod = xmlSerializerOperationBehaviorType.GetMethod("GetXmlMappings");
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
107MethodInfo method = type.GetMethod(methodName);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (2)
38s_getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle"); 192MethodInfo signature = delegateType.GetMethod("Invoke");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (10)
985return t.GetMethod(name); 1040addMethod = type.GetMethod(Globals.AddMethodName); 1041getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).GetMethod(Globals.GetEnumeratorMethodName); 1051addMethod = collectionType.GetMethod(Globals.AddMethodName); 1054getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).GetMethod(Globals.GetEnumeratorMethodName); 1062addMethod = type.GetMethod(Globals.AddMethodName); 1071addMethod = type.GetMethod(Globals.AddMethodName); 1075getEnumeratorMethod = Globals.TypeOfIEnumerable.GetMethod(Globals.GetEnumeratorMethodName); 1223addMethod = t.GetMethod(Globals.AddMethodName) ?? addMethod; 1224getEnumeratorMethod = t.GetMethod(Globals.GetEnumeratorMethodName) ?? getEnumeratorMethod;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (3)
111s_ienumeratorMoveNextMethod = typeof(IEnumerator).GetMethod("MoveNext"); 1006s_getTypeHandleMethod = typeof(Type).GetMethod("get_TypeHandle"); 1020s_getTypeMethod = typeof(object).GetMethod("GetType");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
65if (declaringType == typeof(object) && method == typeof(object).GetMethod("GetType"))
Shared\ProjectPropertyResolver.cs (1)
54var getPropertyValue = projType.GetMethod("GetPropertyValue");
GetDocument.Insider (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25102.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
181var buildMethod = builder.GetType().GetMethod("Build");
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
88 /// <item><see cref="System.Type.GetMethod(string)"/></item>
Microsoft.Arcade.Common (2)
MSBuildTaskBase.cs (2)
70return GetType().GetMethod(ExecuteMethodName).GetParameters().Select(p => p.ParameterType).ToArray(); 90return GetType().GetMethod(ExecuteMethodName);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\IncomingHttpRouteUtilityTests.cs (9)
29var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest1Async))!.GetParameters(); 67var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest2Async))!.GetParameters(); 107var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest3Async))!.GetParameters(); 149var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest4Async))!.GetParameters(); 191var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest1Async))!.GetParameters(); 238var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest5Async))!.GetParameters(); 279var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest2Async))!.GetParameters(); 327var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest2Async))!.GetParameters(); 372var parametersInfo = typeof(TestController).GetMethod(nameof(TestController.GetTest2Async))!.GetParameters();
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
441var methodInfo = serviceType.GetMethod(methodDescriptor.Name);
Microsoft.AspNetCore.Grpc.Swagger (2)
Internal\XmlComments\GrpcXmlCommentsOperationFilter.cs (1)
30var methodInfo = grpcMetadata.ServiceType.GetMethod(grpcMetadata.Method.Name);
src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
441var methodInfo = serviceType.GetMethod(methodDescriptor.Name);
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostBuilder.cs (1)
299typeof(IHostBuilder).GetMethod(nameof(IHostBuilder.ConfigureContainer))!
Microsoft.AspNetCore.Http.Extensions (13)
RequestDelegateFactory.cs (3)
112private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(EndpointFilterInvocationContext).GetMethod(nameof(EndpointFilterInvocationContext.GetArgument))!; 123private static readonly MethodInfo FormDataMapperMapMethod = typeof(FormDataMapper).GetMethod(nameof(FormDataMapper.Map))!; 125private static readonly MethodInfo ArrayPoolSharedReturnMethod = typeof(ArrayPool<char>).GetMethod(nameof(ArrayPool<char>.Shared.Return))!;
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).GetMethod("GetAwaiter")!; 387private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("get_IsCompleted")!; 388private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).GetMethod("GetResult")!; 389private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("OnCompleted")!; 390private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("UnsafeOnCompleted")!; 392private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).GetMethod("GetAwaiter")!; 393private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("get_IsCompleted")!; 394private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("GetResult")!; 395private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("OnCompleted")!; 396private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("UnsafeOnCompleted")!;
Microsoft.AspNetCore.Http.Extensions.Tests (2)
PropertyAsParameterInfoTests.cs (1)
181var methodInfo = typeof(ArgumentList).GetMethod(methodName);
RequestDelegateFactoryTests.cs (1)
269var methodInfo = typeof(HttpHandler).GetMethod(nameof(HttpHandler.Handle));
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAspNetTestAssemblyRunner.cs (1)
89var method = type.GetMethod(TestableAssembly.TestMethodName);
Microsoft.AspNetCore.Mvc.Abstractions.Test (5)
ModelBinding\ModelMetadataTest.cs (3)
259var method = typeof(CollectionImplementation).GetMethod(nameof(CollectionImplementation.Add)); 296var method = typeof(CollectionImplementation).GetMethod(nameof(CollectionImplementation.Add)); 340var method = typeof(CollectionImplementation).GetMethod(nameof(CollectionImplementation.Add));
ModelBinding\ModelStateDictionaryTest.cs (2)
1029var method = typeof(string).GetMethod(nameof(string.Copy)); 1145var method = typeof(string).GetMethod(nameof(string.Copy));
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (2)
ApiResponseTypeProviderTest.cs (2)
91MethodInfo = typeof(GetApiResponseTypes_ReturnsResponseTypesFromActionIfPresentController).GetMethod(nameof(GetApiResponseTypes_ReturnsResponseTypesFromActionIfPresentController.Get)), 786var method = type.GetMethod(name);
Microsoft.AspNetCore.Mvc.Core (10)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).GetMethod("GetAwaiter")!; 387private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("get_IsCompleted")!; 388private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).GetMethod("GetResult")!; 389private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("OnCompleted")!; 390private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("UnsafeOnCompleted")!; 392private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).GetMethod("GetAwaiter")!; 393private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("get_IsCompleted")!; 394private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("GetResult")!; 395private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("OnCompleted")!; 396private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("UnsafeOnCompleted")!;
Microsoft.AspNetCore.Mvc.Core.Test (112)
ApiConventionMethodAttributeTest.cs (1)
63var method = type.GetMethod(nameof(ConventionWithNullableContextAttribute.Get));
ApiExplorer\ApiConventionMatcherTest.cs (14)
334var method = typeof(TestController).GetMethod(nameof(TestController.Get)); 335var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.Post)); 348var method = typeof(TestController).GetMethod(nameof(TestController.Get)); 349var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.GetNoArgs)); 362var method = typeof(TestController).GetMethod(nameof(TestController.Get)); 363var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.GetTwoArgs)); 376var method = typeof(TestController).GetMethod(nameof(TestController.Get)); 377var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.GetParameterNotMatching)); 390var method = typeof(TestController).GetMethod(nameof(TestController.Get)); 391var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.Get)); 404var method = typeof(TestController).GetMethod(nameof(TestController.Search)); 405var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.Search)); 418var method = typeof(TestController).GetMethod(nameof(TestController.SearchEmpty)); 419var conventionMethod = typeof(TestConvention).GetMethod(nameof(TestConvention.SearchWithParams));
ApiExplorer\ApiConventionResultTest.cs (8)
12var method = typeof(GetApiConvention_ReturnsNull_IfNoConventionMatchesController).GetMethod(nameof(GetApiConvention_ReturnsNull_IfNoConventionMatchesController.NoMatch)); 33.GetMethod(nameof(GetApiConvention_ReturnsResultFromConventionController.Match)); 69.GetMethod(nameof(GetApiConvention_ReturnsResultFromFirstMatchingConventionController.Get)); 98.GetMethod(nameof(DefaultConventionController.GetUser)); 118.GetMethod(nameof(DefaultConventionController.PostUser)); 138.GetMethod(nameof(DefaultConventionController.PutUser)); 162.GetMethod(nameof(DefaultConventionController.Delete)); 186.GetMethod(nameof(DefaultConventionController.EditUser));
ApplicationModels\ActionModelTest.cs (2)
19var action = new ActionModel(typeof(TestController).GetMethod(nameof(TestController.Edit)), 61typeof(TestController).GetMethod("Edit"),
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (3)
23var method = typeof(TestApiController).GetMethod(nameof(TestApiController.TestAction)); 49var method = typeof(TestApiController).GetMethod(nameof(TestApiController.TestAction)); 92var method = typeof(TestApiController).GetMethod(nameof(TestApiController.TestActionWithIResult));
ApplicationModels\ApiConventionApplicationModelConventionTest.cs (1)
170var actionModel = new ActionModel(typeof(TestController).GetMethod(actionName), actionAttributes)
ApplicationModels\ControllerActionDescriptorBuilderTest.cs (4)
39var methodInfo = typeof(TestController).GetMethod(nameof(TestController.SomeAction)); 71var methodInfo = typeof(TestController).GetMethod(nameof(TestController.SomeAction)); 97var methodInfo = typeof(TestController).GetMethod(nameof(TestController.SomeAction)); 123var methodInfo = typeof(TestController).GetMethod(nameof(TestController.SomeAction));
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1160var methodInfo = typeof(ConventionsController).GetMethod("Create");
ApplicationModels\ControllerModelTest.cs (1)
20var action = new ActionModel(typeof(TestController).GetMethod("Edit"),
ApplicationModels\DefaultApplicationModelProviderTest.cs (30)
317var methodInfo = typeInfo.GetMethod(nameof(AsyncActionController.GetPersonAsync)); 337var methodInfo = typeInfo.GetMethod(nameof(AsyncActionController.GetPersonAsync)); 357var methodInfo = typeInfo.GetMethod(nameof(AsyncActionController.GetAddressAsync)); 483var method = typeof(DerivedController).GetMethod(methodName); 498var method = typeof(BaseController).GetMethod(nameof(BaseController.Redirect)); 530var method = typeof(OperatorOverloadingController).GetMethod("op_Addition"); 546var method = typeof(DerivedController).GetMethod("GenericMethod"); 561var method = typeof(DerivedController).GetMethod("OverridenNonActionMethod"); 753var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 773var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 797var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 822var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 845var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 868var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 896var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 920var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 949var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 985var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1007var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod("Delete")); 1030var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod("Index")); 1060var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1081var actions = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1105var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1132var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1155var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1176var methodInfo = typeInfo.GetMethod(nameof(MultipleRouteProviderOnActionController.Edit)); 1211var actions = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1233var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1254var action = builder.CreateActionModel(typeInfo, typeInfo.AsType().GetMethod(actionName)); 1273var actionMethod = typeof(TypedResultsReturningActionsController).GetMethod(nameof(TypedResultsReturningActionsController.Get));
ApplicationModels\ParameterModelTest.cs (2)
15var parameter = new ParameterModel(typeof(TestController).GetMethod("Edit").GetParameters()[0], 18parameter.Action = new ActionModel(typeof(TestController).GetMethod("Edit"), new List<object>());
Controllers\ControllerBinderDelegateProviderTest.cs (3)
1439.GetMethod(nameof(ParameterInfos.Method)) 1444.GetMethod(nameof(ParameterInfos.Method)) 1449.GetMethod(nameof(ParameterInfos.Method))
DependencyInjection\ApplicationModelConventionExtensionsTest.cs (11)
21var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>()); 24controllerType.GetMethod(nameof(HelloController.GetInfo)).GetParameters()[0], 46var actionMethod1 = controllerType1.GetMethod(nameof(HelloController.GetHello)); 56var actionMethod2 = controllerType2.GetMethod(nameof(WorldController.GetWorld)); 91controllerType1.GetMethod(nameof(HelloController.GetInfo)).GetParameters()[0], 93var actionMethod1 = controllerType1.GetMethod(nameof(HelloController.GetInfo)); 236new ActionModel(controllerType.GetMethod(nameof(HelloController.GetHello)), Array.Empty<object>()) 310var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>()) 316controllerType.GetMethod(nameof(HelloController.GetInfo)).GetParameters()[0], 343var actionModel = new ActionModel(controllerType.GetMethod(nameof(HelloController.GetInfo)), Array.Empty<object>()) 349controllerType.GetMethod(nameof(HelloController.GetInfo)).GetParameters()[0],
Filters\MiddlewareFilterTest.cs (2)
243actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod( 248actionDescriptor.MethodInfo = typeof(ControllerActionInvokerTest.TestController).GetMethod(
Infrastructure\ControllerActionInvokerCacheTest.cs (1)
117MethodInfo = typeof(TestController).GetMethod(nameof(TestController.Index)),
Infrastructure\ControllerActionInvokerProviderTest.cs (1)
47var method = typeof(TestActions).GetMethod(nameof(TestActions.GetAction));
Infrastructure\ControllerActionInvokerTest.cs (9)
40actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 81actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 112actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 161actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1561MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)), 1615actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1623actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ThrowingActionMethod)); 1631actionDescriptor.MethodInfo = typeof(TestController).GetMethod(nameof(TestController.ActionMethod)); 1655var method = typeof(TestController).GetTypeInfo().GetMethod(methodName);
Infrastructure\ParameterDefaultValuesTest.cs (2)
18var methodInfo = typeof(TestObject).GetMethod(methodName); 31var methodInfo = typeof(TestObject).GetMethod("DefaultValuesOfStructTypes");
ModelBinding\Binders\ServicesModelBinderProviderTest.cs (4)
102.GetMethod(nameof(ParameterInfos.TestMethod2)) 106.GetMethod(nameof(ParameterInfos.TestMethod2)) 111.GetMethod(nameof(ParameterInfos.TestMethod)) 115.GetMethod(nameof(ParameterInfos.TestMethod))
ModelBinding\Binders\SimpleTypeModelBinderTest.cs (1)
163var method = typeof(MetadataClass).GetMethod(nameof(MetadataClass.IsLovely));
ModelBinding\Binders\TryParseTypeModelBinderTest.cs (1)
112var method = typeof(MetadataClass).GetMethod(nameof(MetadataClass.IsLovely));
ModelBinding\Metadata\DefaultBindingMetadataProviderTest.cs (1)
908.GetMethod(nameof(ParameterInfos.Method))
ModelBinding\Metadata\DefaultModelMetadataProviderTest.cs (3)
205.GetMethod(nameof(ModelType.Method1)) 224.GetMethod(nameof(ModelType.Method1)) 253.GetMethod(nameof(ModelType.Method1))
ModelBinding\Metadata\ModelAttributesTest.cs (4)
184.GetMethod(nameof(MethodWithParamAttributesType.Method)) 201.GetMethod(nameof(MethodWithParamAttributesType.Method)) 226.GetMethod(nameof(MethodWithParamAttributesType.Method)) 246.GetMethod(nameof(MethodWithParamAttributesType.Method))
MvcCoreLoggerExtensionsTest.cs (1)
47MethodInfo = typeof(object).GetMethod(nameof(ToString)),
Routing\AttributeRoutingTest.cs (1)
114var actionMethod = controllerType.GetMethod("Index");
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (6)
DataAnnotationsMetadataProviderTest.cs (4)
1387var method = type.GetMethod(nameof(NullableReferenceTypes.MethodWithDefault)); 1408var method = type.GetMethod(nameof(NullableReferenceTypes.MethodWithDefault)); 1652var method = type.GetMethod(nameof(NullableReferenceTypes.Method)); 1669var method = type.GetMethod(nameof(NullableReferenceTypes.Method));
NumericClientModelValidatorTest.cs (1)
76var method = typeof(TypeWithNumericProperty).GetMethod(nameof(TypeWithNumericProperty.IsLovely));
ValidatableObjectAdapterTest.cs (1)
21var method = typeof(SampleModel).GetMethod(nameof(SampleModel.IsLovely));
Microsoft.AspNetCore.Mvc.IntegrationTests (10)
ActionParametersIntegrationTest.cs (2)
959=> typeof(BindingAndValidationController).GetMethod(nameof(MyAction)); 984=> typeof(ParameterWithValidateNever).GetMethod(nameof(MyAction));
BinderTypeBasedModelBinderIntegrationTest.cs (1)
156var parameters = typeof(TestController).GetMethod(nameof(TestController.Action)).GetParameters();
ServicesModelBinderIntegrationTest.cs (4)
200var parameters = typeof(TestController).GetMethod(nameof(TestController.Action)).GetParameters(); 233var parameters = typeof(TestController).GetMethod(nameof(TestController.Action)).GetParameters(); 269var parameters = typeof(TestController).GetMethod(nameof(TestController.ActionWithDefaultValue)).GetParameters(); 302var parameters = typeof(TestController).GetMethod(nameof(TestController.ActionWithDefaultValue)).GetParameters();
ValidationIntegrationTests.cs (3)
612.GetMethod(nameof(ParameterInfos.Method))! 617.GetMethod(nameof(ParameterInfos.Method))! 2564public Delegate Delegate { get; set; } = typeof(ModelWithNonNullableReferenceTypeProperties).GetMethod(nameof(SomeMethod))!.CreateDelegate<Action>();
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageCreateTagHelperTest.cs (1)
87return typeof(Enumerable).GetMethod("Empty").MakeGenericMethod(enumerableType).Invoke(null, null);
Microsoft.AspNetCore.Mvc.RazorPages.Test (33)
ApplicationModels\CompiledPageActionDescriptorBuilderTest.cs (4)
70new PageHandlerModel(handlerTypeInfo.GetMethod(nameof(TestModel.OnGet)), new object[0]), 121new PageHandlerModel(handlerTypeInfo.GetMethod(nameof(TestModel.OnGet)), new object[0]), 214var handlerModel = new PageHandlerModel(handlerTypeInfo.GetMethod(nameof(ModelWithHandler.OnGetCustomerAsync)), new object[0]) 254var handlerMethod = handlerTypeInfo.GetMethod(nameof(HandlerWithParameters.OnPost));
ApplicationModels\DefaultPageApplicationModelProviderTest.cs (8)
302Assert.Equal(typeInfo.GetMethod(name), handler.MethodInfo); 310Assert.Equal(typeInfo.GetMethod(name), handler.MethodInfo); 318Assert.Equal(typeInfo.GetMethod(name), handler.MethodInfo); 434Assert.Equal(modelType.GetMethod(name), handler.MethodInfo); 589p => Assert.Equal(modelType.GetMethod(nameof(ModelWithHandler.OnGet)), p.MethodInfo)); 638p => Assert.Equal(typeInfo.GetMethod(nameof(PageWithHandler.OnGet)), p.MethodInfo)); 875Assert.Same(typeInfo.GetMethod(nameof(PageModelWithHandlerNames.OnPutDeleteAsync)), handler.MethodInfo); 898var expected = typeInfo.GetMethod(nameof(PageWithHandlerParameters.OnPost));
Infrastructure\DefaultPageHandlerMethodSelectorTest.cs (4)
623MethodInfo = GetType().GetMethod(nameof(Post)), 629MethodInfo = GetType().GetMethod(nameof(PostAsync)), 675MethodInfo = GetType().GetMethod(nameof(Post)), 682MethodInfo = GetType().GetMethod(nameof(PostAsync)),
Infrastructure\ExecutorFactoryTest.cs (8)
18MethodInfo = typeof(TestPage).GetMethod(nameof(TestPage.ActionResultReturningHandler)), 38MethodInfo = typeof(TestPage).GetMethod(nameof(TestPage.ConcreteActionResult)), 56var methodInfo = typeof(TestPage).GetMethod(nameof(TestPage.ActionResultReturnHandlerWithParameters)); 80MethodInfo = typeof(TestPage).GetMethod(nameof(TestPage.VoidReturningHandler)), 103MethodInfo = typeof(TestPage).GetMethod(nameof(TestPage.VoidTaskReturningHandler)), 124var methodInfo = typeof(TestPage).GetMethod(nameof(TestPage.GenericTaskHandler)); 145var methodInfo = typeof(TestPage).GetMethod(nameof(TestPage.TaskReturningConcreteSubtype)); 170var methodInfo = typeof(TestPageModel).GetMethod(methodName);
Infrastructure\PageActionInvokerTest.cs (6)
1593MethodInfo = typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler1)), 1599MethodInfo = typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler2)), 1621MethodInfo = typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler1)), 1627MethodInfo = typeof(TestPage).GetTypeInfo().GetMethod(nameof(TestPage.OnGetHandler2)), 1649MethodInfo = typeof(TestPageModel).GetTypeInfo().GetMethod(nameof(TestPageModel.OnGetHandler1)), 1655MethodInfo = typeof(TestPageModel).GetTypeInfo().GetMethod(nameof(TestPageModel.OnGetHandler2)),
Infrastructure\PageBinderFactoryTest.cs (1)
756var handlerMethodInfo = type.GetMethod(method);
PageLoggerExtensionsTest.cs (2)
143MethodInfo = typeof(ValueTuple<int, string>).GetMethod(nameof(ToString)), 172MethodInfo = typeof(ValueTuple<int, string>).GetMethod(nameof(ToString)),
Microsoft.AspNetCore.Mvc.Testing (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25102.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
181var buildMethod = builder.GetType().GetMethod("Build");
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
Filters\AntiforgeryApplicationModelProviderTest.cs (1)
165var actionModel = new ActionModel(typeof(TestController).GetMethod(actionName), actionAttributes)
ViewComponentResultTest.cs (14)
73var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 171var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 202var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 233var methodInfo = typeof(AsyncTextViewComponent).GetMethod(nameof(AsyncTextViewComponent.InvokeAsync)); 264var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 305var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 336var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 367var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 399var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 441var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 482var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 542var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 582var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke)); 621var methodInfo = typeof(TextViewComponent).GetMethod(nameof(TextViewComponent.Invoke));
Microsoft.AspNetCore.OpenApi (10)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).GetMethod("GetAwaiter")!; 387private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("get_IsCompleted")!; 388private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).GetMethod("GetResult")!; 389private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("OnCompleted")!; 390private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("UnsafeOnCompleted")!; 392private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).GetMethod("GetAwaiter")!; 393private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("get_IsCompleted")!; 394private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("GetResult")!; 395private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("OnCompleted")!; 396private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("UnsafeOnCompleted")!;
Microsoft.AspNetCore.Shared.Tests (12)
ObjectMethodExecutorTest.cs (2)
412var method = typeof(TestObject).GetMethod(methodName); 418var method = typeof(TestObject).GetMethod(methodName);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).GetMethod("GetAwaiter")!; 387private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("get_IsCompleted")!; 388private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).GetMethod("GetResult")!; 389private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("OnCompleted")!; 390private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("UnsafeOnCompleted")!; 392private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).GetMethod("GetAwaiter")!; 393private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("get_IsCompleted")!; 394private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("GetResult")!; 395private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("OnCompleted")!; 396private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("UnsafeOnCompleted")!;
Microsoft.AspNetCore.SignalR.Client.Core (5)
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (5)
148private static readonly MethodInfo _asyncEnumerableGetAsyncEnumeratorMethodInfo = typeof(IAsyncEnumerable<>).GetMethod("GetAsyncEnumerator")!; 176private static readonly MethodInfo _asyncEnumeratorMoveNextAsyncMethodInfo = typeof(IAsyncEnumerator<>).GetMethod("MoveNextAsync")!; 177private static readonly MethodInfo _asyncEnumeratorGetCurrentMethodInfo = typeof(IAsyncEnumerator<>).GetMethod("get_Current")!; 201private static readonly MethodInfo _channelReaderTryReadMethodInfo = typeof(ChannelReader<>).GetMethod("TryRead")!; 202private static readonly MethodInfo _channelReaderWaitToReadAsyncMethodInfo = typeof(ChannelReader<>).GetMethod("WaitToReadAsync")!;
Microsoft.AspNetCore.SignalR.Core (15)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).GetMethod("GetAwaiter")!; 387private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("get_IsCompleted")!; 388private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).GetMethod("GetResult")!; 389private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("OnCompleted")!; 390private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).GetMethod("UnsafeOnCompleted")!; 392private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).GetMethod("GetAwaiter")!; 393private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("get_IsCompleted")!; 394private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("GetResult")!; 395private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("OnCompleted")!; 396private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).GetMethod("UnsafeOnCompleted")!;
src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (5)
148private static readonly MethodInfo _asyncEnumerableGetAsyncEnumeratorMethodInfo = typeof(IAsyncEnumerable<>).GetMethod("GetAsyncEnumerator")!; 176private static readonly MethodInfo _asyncEnumeratorMoveNextAsyncMethodInfo = typeof(IAsyncEnumerator<>).GetMethod("MoveNextAsync")!; 177private static readonly MethodInfo _asyncEnumeratorGetCurrentMethodInfo = typeof(IAsyncEnumerator<>).GetMethod("get_Current")!; 201private static readonly MethodInfo _channelReaderTryReadMethodInfo = typeof(ChannelReader<>).GetMethod("TryRead")!; 202private static readonly MethodInfo _channelReaderWaitToReadAsyncMethodInfo = typeof(ChannelReader<>).GetMethod("WaitToReadAsync")!;
Microsoft.AspNetCore.SignalR.Tests (9)
HubConnectionHandlerTests.cs (1)
2318Assert.Equal(typeof(MethodHub).GetMethod(nameof(MethodHub.MultiParamAuthMethod)), resource.HubMethod);
HubReflectionHelperTests.cs (7)
27Assert.Contains(hubMethods, m => m == hubType.GetMethod("VoidMethod")); 28Assert.Contains(hubMethods, m => m == hubType.GetMethod("IntMethod")); 29Assert.Contains(hubMethods, m => m == hubType.GetMethod("ArgMethod")); 39Assert.Contains(hubMethods, m => m == hubType.GetMethod("ExtraMethod")); 40Assert.Contains(hubMethods, m => m == hubType.GetMethod("VoidMethod")); 41Assert.Contains(hubMethods, m => m == hubType.GetMethod("IntMethod")); 42Assert.Contains(hubMethods, m => m == hubType.GetMethod("ArgMethod"));
TestFilters.cs (1)
231var methodInfo = typeof(BaseHub).GetMethod(nameof(BaseHub.BaseMethod));
Microsoft.AspNetCore.TestHost (1)
.packages\microsoft.extensions.hostfactoryresolver.sources\10.0.0-preview.2.25102.2\contentFiles\cs\netstandard2.0\HostFactoryResolver.cs (1)
181var buildMethod = builder.GetType().GetMethod("Build");
Microsoft.Build (2)
Utilities\NuGetFrameworkWrapper.cs (2)
70IsCompatibleMethod = NuGetFrameworkCompatibilityProvider.GetMethod("IsCompatible"); 71DefaultCompatibilityProvider = NuGetFrameworkDefaultCompatibilityProvider.GetMethod("get_Instance").Invoke(null, Array.Empty<object>());
Microsoft.CodeAnalysis.LanguageServer (1)
Services\StarredCompletions\StarredCompletionsAssemblyHelper.cs (1)
130var createCompletionProviderMethodInto = completionHelperType?.GetMethod(methodName);
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
ObjectFormatterFixtures\Custom.cs (1)
61public static readonly MethodInfo Arrays = typeof(Signatures).GetMethod(nameof(ArrayParameters));
Microsoft.CodeAnalysis.UnitTests (30)
AnalyzerAssemblyLoaderTests.cs (28)
312a.GetType().GetMethod("Write")!.Invoke(a, new object[] { sb, "Test A" }); 317b.GetType().GetMethod("Write")!.Invoke(b, new object[] { sb, "Test B" }); 382var writeMethod = b.GetType().GetMethod("Write")!; 542var writeMethod = b.GetType().GetMethod("Write")!; 574var writeMethod = b.GetType().GetMethod("Write")!; 690var writeMethod = b.GetType().GetMethod("Write")!; 739var writeMethod = b.GetType().GetMethod("Write")!; 799g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 803e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 855e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 914e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1001e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1061e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1115g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1119e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1175g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1179var eWrite = e.GetType().GetMethod("Write")!; 1354g.GetType().GetMethod("Write")!.Invoke(g, new object[] { sb, "Test G" }); 1358e.GetType().GetMethod("Write")!.Invoke(e, new object[] { sb, "Test E" }); 1384delta1Instance.GetType().GetMethod("Write")!.Invoke(delta1Instance, new object[] { sb, "Test D1" }); 1388delta2Instance.GetType().GetMethod("Write")!.Invoke(delta2Instance, new object[] { sb, "Test D2" }); 1416var ex = Assert.ThrowsAny<Exception>(() => analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb })); 1421analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb }); 1440analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb }); 1477var result = analyzer.GetType().GetMethod("GetFileAttributes")!.Invoke(analyzer, new[] { testFixture.AnalyzerWithNativeDependency }); 1527d!.GetType().GetMethod("Write")!.Invoke(d, new object[] { sb, "Test D" }); 1561var writeMethod = b.GetType().GetMethod("Write")!; 1703analyzer.GetType().GetMethod("Method")!.Invoke(analyzer, new object[] { sb });
Collections\ImmutableSegmentedListTest.cs (1)
805var addMethod = list.GetType().GetMethod("Add");
Collections\SegmentedArrayHelperTests.cs (1)
106var unsafeSizeOfMethod = typeof(Unsafe).GetMethod(nameof(Unsafe.SizeOf)).MakeGenericMethod(type);
Microsoft.CodeAnalysis.XunitHook (1)
XunitDisposeHook.cs (1)
36var method = appDomainManagerType.GetMethod("Dispose");
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
73MethodInfo isNaN = s_DoubleIsNaN ??= typeof(double).GetMethod("IsNaN"); 79MethodInfo isNaN = s_SingleIsNaN ??= typeof(float).GetMethod("IsNaN");
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (4)
HelperFactory.cs (4)
207private static MethodInfo ObjectToString = typeof(object).GetMethod("ToString"); 214typeof(Enumerable).GetMethod("Skip").MakeGenericMethod(member); 217typeof(Enumerable).GetMethod("ToArray").MakeGenericMethod(member); 231private static MethodInfo HandlebarsUtilsIsTruthyOrNonEmpty = typeof(HandlebarsUtils).GetMethod("IsTruthyOrNonEmpty");
Microsoft.Extensions.AI.Tests (2)
Functions\AIFunctionFactoryTest.cs (2)
21Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, null)); 22Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>()));
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
35private static readonly MethodInfo GetTypeFromHandleMethod = typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle))!;
ServiceLookup\ServiceLookupHelpers.cs (1)
15private static readonly MethodInfo ArrayEmptyMethodInfo = typeof(Array).GetMethod(nameof(Array.Empty))!;
Microsoft.Maui (1)
VisualDiagnostics\BootstrapHelper.cs (1)
45 MethodInfo method = type?.GetMethod(methodName);
Microsoft.Maui.Controls.Compatibility (1)
src\Core\src\VisualDiagnostics\BootstrapHelper.cs (1)
45 MethodInfo method = type?.GetMethod(methodName);
Microsoft.Maui.Controls.Xaml (2)
ApplyPropertiesVisitor.cs (2)
483 var n_params = eventInfo.EventHandlerType.GetMethod("Invoke").GetParameters().Length; 494 if (!parameters[i].ParameterType.IsAssignableFrom(eventInfo.EventHandlerType.GetMethod("Invoke").GetParameters()[i].ParameterType))
Microsoft.ML.Core (2)
ComponentModel\LoadableClassAttribute.cs (2)
179var meth = sigType.GetMethod("Invoke"); 211meth = sigType.GetMethod("Invoke");
Microsoft.ML.OnnxTransformer (4)
OnnxTypeParser.cs (4)
302var accessInfo = typeof(Tensor<>).GetMethod(nameof(Tensor<int>.GetValue)); 321var methodInfo = typeof(NamedOnnxValue).GetMethod(nameof(NamedOnnxValue.AsTensor)); 347var methodInfo = typeof(CastHelper).GetMethod(nameof(CastHelper.CastOnnxSequenceToIEnumerable)); 370var asDictionaryMethodInfo = typeof(NamedOnnxValue).GetMethod(nameof(NamedOnnxValue.AsDictionary));
Microsoft.ML.Predictor.Tests (1)
CmdLine\CmdLineReverseTest.cs (1)
192.GetMethod("CreateComponentFactory");
Microsoft.VisualBasic.Core (14)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (13)
327GetType(NewLateBinding).GetMethod("FallbackCall"), 406GetType(NewLateBinding).GetMethod("FallbackGet"), 493GetType(NewLateBinding).GetMethod(If(_lateCall, "LateCallInvokeDefault", "LateGetInvokeDefault")), 562GetType(NewLateBinding).GetMethod("FallbackInvokeDefault1"), 631GetType(NewLateBinding).GetMethod("FallbackInvokeDefault2"), 692GetType(NewLateBinding).GetMethod("FallbackSet"), 749GetType(NewLateBinding).GetMethod("FallbackSetComplex"), 843GetType(Conversions).GetMethod("FallbackUserDefinedConversion"), 892GetType(Operators).GetMethod("FallbackInvokeUserDefinedOperator"), 941GetType(Operators).GetMethod("FallbackInvokeUserDefinedOperator"), 1007GetType(NewLateBinding).GetMethod("FallbackIndexSet"), 1080GetType(NewLateBinding).GetMethod("FallbackIndexSetComplex"), 1402il.Emit(OpCodes.Callvirt, CallSiteDelegate.GetMethod("Invoke"))
Microsoft\VisualBasic\Interaction.vb (1)
139Dim method As MethodInfo = type?.GetMethod(methodName)
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2036MethodInfo methodInvoke = eventHandlerType.GetMethod("Invoke");
Roslyn.VisualStudio.Next.UnitTests (1)
Options\VisualStudioSettingsOptionPersisterTests.cs (1)
104=> (bool)array.GetType().GetMethod("get_IsDefault").Invoke(array, [])!;
System.ComponentModel.Composition (7)
Microsoft\Internal\GenerationServices.cs (2)
17private static readonly MethodInfo s_typeGetTypeFromHandleMethod = typeof(Type).GetMethod("GetTypeFromHandle")!; 38private static readonly MethodInfo DictionaryAdd = typeof(IDictionary).GetMethod("Add")!;
System\ComponentModel\Composition\ConstraintServices.cs (3)
18private static readonly MethodInfo _metadataContainsKeyMethod = typeof(IDictionary<string, object>).GetMethod("ContainsKey")!; 19private static readonly MethodInfo _metadataItemMethod = typeof(IDictionary<string, object>).GetMethod("get_Item")!; 21private static readonly MethodInfo _typeIsInstanceOfTypeMethod = typeof(Type).GetMethod("IsInstanceOfType")!;
System\ComponentModel\Composition\ContractNameServices.cs (1)
52MethodInfo method = type.GetMethod("Invoke")!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
74private static readonly MethodInfo _mdvDictionaryTryGet = CtorArgumentTypes[0].GetMethod("TryGetValue")!;
System.Linq.Expressions (39)
System\Dynamic\ExpandoObject.cs (5)
23typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.ExpandoTryGetValue))!; 26typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.ExpandoTrySetValue))!; 29typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.ExpandoTryDeleteValue))!; 32typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.ExpandoPromoteClass))!; 35typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.ExpandoCheckVersion))!;
System\Dynamic\Utils\CachedReflectionInfo.cs (15)
22s_CallSiteOps_SetNotMatched ??= typeof(CallSiteOps).GetMethod(nameof(CallSiteOps.SetNotMatched))!; 26s_CallSiteOps_GetMatch ??= typeof(CallSiteOps).GetMethod(nameof(CallSiteOps.GetMatch))!; 30s_CallSiteOps_ClearMatch ??= typeof(CallSiteOps).GetMethod(nameof(CallSiteOps.ClearMatch))!; 34s_DynamicObject_TryGetMember ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryGetMember))!; 38s_DynamicObject_TrySetMember ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TrySetMember))!; 42s_DynamicObject_TryDeleteMember ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryDeleteMember))!; 46s_DynamicObject_TryGetIndex ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryGetIndex))!; 50s_DynamicObject_TrySetIndex ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TrySetIndex))!; 54s_DynamicObject_TryDeleteIndex ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryDeleteIndex))!; 58s_DynamicObject_TryConvert ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryConvert))!; 62s_DynamicObject_TryInvoke ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryInvoke))!; 66s_DynamicObject_TryInvokeMember ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryInvokeMember))!; 70s_DynamicObject_TryBinaryOperation ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryBinaryOperation))!; 74s_DynamicObject_TryUnaryOperation ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryUnaryOperation))!; 78s_DynamicObject_TryCreateInstance ??= typeof(DynamicObject).GetMethod(nameof(DynamicObject.TryCreateInstance))!;
System\Dynamic\Utils\DelegateHelpers.cs (8)
34.GetMethod("CreateObjectArrayDelegate")! 71private static readonly MethodInfo s_FuncInvoke = typeof(Func<object?[], object?>).GetMethod("Invoke")!; 112return new MethodInfo[]{delHelpers.GetMethod("ActionThunk")!, 113delHelpers.GetMethod("ActionThunk1")!, 114delHelpers.GetMethod("ActionThunk2")!}; 120return new MethodInfo[]{delHelpers.GetMethod("FuncThunk")!, 121delHelpers.GetMethod("FuncThunk1")!, 122delHelpers.GetMethod("FuncThunk2")!};
System\Linq\Expressions\Common\CachedReflectionInfo.cs (4)
91s_Type_GetTypeFromHandle ??= typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle))!; 95s_Object_GetType ??= typeof(object).GetMethod(nameof(object.GetType))!; 160s_RuntimeOps_MergeRuntimeVariables ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.MergeRuntimeVariables))!; 164s_RuntimeOps_Quote ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.Quote))!;
System\Linq\Expressions\Interpreter\CallInstruction.cs (3)
130typeof(CallInstruction).GetMethod(nameof(ArrayItemSetter1)); 136typeof(CallInstruction).GetMethod(nameof(ArrayItemSetter2)); 142typeof(CallInstruction).GetMethod(nameof(ArrayItemSetter3));
System\Linq\Expressions\MemberExpression.cs (1)
344if (type.IsInterface && method.Name == propertyMethod.Name && type.GetMethod(method.Name) == propertyMethod)
System\Runtime\CompilerServices\CallSite.cs (2)
102MethodInfo method = typeof(CallSite<>).MakeGenericType(delegateType).GetMethod(nameof(Create))!; 675typeof(CallSiteOps).GetMethod(nameof(CallSiteOps.SetNotMatched))!,
System\Runtime\CompilerServices\CallSiteHelpers.cs (1)
14private static readonly Type s_knownNonDynamicMethodType = typeof(object).GetMethod(nameof(ToString))!.GetType();
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
122Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!); 145Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!);
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokerEmitUtil.cs (1)
334s_ThrowHelper_Throw_NullReference_InvokeNullRefReturned ??= typeof(ThrowHelper).GetMethod(nameof(ThrowHelper.Throw_NullReference_InvokeNullRefReturned))!;
src\System\Delegate.CoreCLR.cs (1)
211MethodInfo invoke = this.GetType().GetMethod("Invoke")!;
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CodeGenerator.cs (2)
24s_getTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle"); 92return delegateType.GetMethod("Invoke")!;
System\Runtime\Serialization\CollectionDataContract.cs (10)
997return t?.GetMethod(name); 1064addMethod = type.GetMethod(Globals.AddMethodName); 1065getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).GetMethod(Globals.GetEnumeratorMethodName)!; 1072addMethod = Globals.TypeOfICollectionGeneric.MakeGenericType(itemType).GetMethod(Globals.AddMethodName); 1074getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).GetMethod(Globals.GetEnumeratorMethodName)!; 1082addMethod = type.GetMethod(Globals.AddMethodName); 1091addMethod = type.GetMethod(Globals.AddMethodName); 1095getEnumeratorMethod = typeof(IEnumerable).GetMethod(Globals.GetEnumeratorMethodName)!; 1296addMethod = t.GetMethod(Globals.AddMethodName) ?? addMethod; 1297getEnumeratorMethod = t.GetMethod(Globals.GetEnumeratorMethodName) ?? getEnumeratorMethod;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (4)
95s_boxPointer = typeof(Pointer).GetMethod("Box"); 254s_ienumeratorMoveNextMethod = typeof(IEnumerator).GetMethod("MoveNext"); 290s_onDeserializationMethod = typeof(IDeserializationCallback).GetMethod("OnDeserialization"); 365s_unboxPointer = typeof(Pointer).GetMethod("Unbox");
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (2)
729_ilg.Call(typeof(Nullable<>).MakeGenericType(innerType).GetMethod("get_HasValue")!); 731_ilg.Call(typeof(Nullable<>).MakeGenericType(innerType).GetMethod("get_Value")!);
System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (7)
75internal static MethodInfo BoxPointer => s_boxPointer ??= typeof(Pointer).GetMethod("Box")!; 98s_ienumeratorMoveNextMethod = typeof(IEnumerator).GetMethod("MoveNext"); 184s_onDeserializationMethod = typeof(IDeserializationCallback).GetMethod("OnDeserialization"); 192internal static MethodInfo UnboxPointer => s_unboxPointer ??= typeof(Pointer).GetMethod("Unbox")!; 916internal static MethodInfo ExtensionDataSetExplicitMethodInfo => s_extensionDataSetExplicitMethodInfo ??= typeof(IExtensibleDataObject).GetMethod(Globals.ExtensionDataSetMethod)!; 1025s_getTypeHandleMethod = typeof(Type).GetMethod("get_TypeHandle"); 1039s_getTypeMethod = typeof(object).GetMethod("GetType");
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
718_ilg.Call(null, typeof(Type).GetMethod("GetTypeHandle")!, memberValue);
System.Private.Windows.Core.TestUtilities (1)
TestAccessor.cs (1)
65MethodInfo? invokeMethodInfo = type.GetMethod("Invoke");
System.Private.Xml (243)
System\Xml\Serialization\Compilation.cs (1)
530MethodInfo? method = type.GetMethod(methodName);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
582MethodInfo? addMethod = targetCollectionType.GetMethod("Add"); 1690MethodInfo? specifiedMethodInfo = o!.GetType().GetMethod($"set_{specifiedMemberName}");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3574ilg.Call(typeof(Span<bool>).GetMethod("get_Item")!); 3587ilg.Call(typeof(Span<bool>).GetMethod("get_Item")!);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
2429MethodInfo getDeclaredConstructors = typeof(TypeInfo).GetMethod("get_DeclaredConstructors")!; 2430MethodInfo getEnumerator = typeof(IEnumerable<>).MakeGenericType(typeof(ConstructorInfo)).GetMethod("GetEnumerator")!; 2437MethodInfo enumeratorCurrent = typeof(IEnumerator).GetMethod("get_Current")!; 2445MethodInfo constructorIsStatic = typeof(ConstructorInfo).GetMethod("get_IsStatic")!; 2449MethodInfo constructorGetParameters = typeof(ConstructorInfo).GetMethod("GetParameters")!;
System\Xml\Xsl\IlGen\GenerateHelper.cs (201)
84AggAvg = aggType.GetMethod("Average"); 85AggAvgResult = aggType.GetMethod("get_AverageResult"); 86AggCreate = aggType.GetMethod("Create"); 87AggIsEmpty = aggType.GetMethod("get_IsEmpty"); 88AggMax = aggType.GetMethod("Maximum"); 89AggMaxResult = aggType.GetMethod("get_MaximumResult"); 90AggMin = aggType.GetMethod("Minimum"); 91AggMinResult = aggType.GetMethod("get_MinimumResult"); 92AggSum = aggType.GetMethod("Sum"); 93AggSumResult = aggType.GetMethod("get_SumResult"); 102SeqAdd = sequenceType.GetMethod("AddClone")!; 107SeqAdd = sequenceType.GetMethod("AddClone")!; 112SeqAdd = sequenceType.GetMethod("Add")!; 120SeqSortByKeys = sequenceType.GetMethod("SortByKeys")!; 125IListItem = listType.GetMethod("get_Item")!; 127IListCount = typeof(ICollection<>).MakeGenericType(storageType).GetMethod("get_Count")!; 131ValueAs = typeof(XPathItem).GetMethod("get_Value"); 133ValueAs = typeof(XPathItem).GetMethod("get_ValueAsInt"); 135ValueAs = typeof(XPathItem).GetMethod("get_ValueAsLong"); 137ValueAs = typeof(XPathItem).GetMethod("get_ValueAsDateTime"); 139ValueAs = typeof(XPathItem).GetMethod("get_ValueAsDouble"); 141ValueAs = typeof(XPathItem).GetMethod("get_ValueAsBoolean"); 145ToAtomicValue = typeof(XmlILStorageConverter).GetMethod("BytesToAtomicValue"); 147ToAtomicValue = typeof(XmlILStorageConverter).GetMethod($"{storageType.Name}ToAtomicValue"); 173public static readonly MethodInfo AncCreate = typeof(AncestorIterator).GetMethod("Create")!; 174public static readonly MethodInfo AncNext = typeof(AncestorIterator).GetMethod("MoveNext")!; 175public static readonly MethodInfo AncCurrent = typeof(AncestorIterator).GetMethod("get_Current")!; 176public static readonly MethodInfo AncDOCreate = typeof(AncestorDocOrderIterator).GetMethod("Create")!; 177public static readonly MethodInfo AncDONext = typeof(AncestorDocOrderIterator).GetMethod("MoveNext")!; 178public static readonly MethodInfo AncDOCurrent = typeof(AncestorDocOrderIterator).GetMethod("get_Current")!; 179public static readonly MethodInfo AttrContentCreate = typeof(AttributeContentIterator).GetMethod("Create")!; 180public static readonly MethodInfo AttrContentNext = typeof(AttributeContentIterator).GetMethod("MoveNext")!; 181public static readonly MethodInfo AttrContentCurrent = typeof(AttributeContentIterator).GetMethod("get_Current")!; 182public static readonly MethodInfo AttrCreate = typeof(AttributeIterator).GetMethod("Create")!; 183public static readonly MethodInfo AttrNext = typeof(AttributeIterator).GetMethod("MoveNext")!; 184public static readonly MethodInfo AttrCurrent = typeof(AttributeIterator).GetMethod("get_Current")!; 185public static readonly MethodInfo ContentCreate = typeof(ContentIterator).GetMethod("Create")!; 186public static readonly MethodInfo ContentNext = typeof(ContentIterator).GetMethod("MoveNext")!; 187public static readonly MethodInfo ContentCurrent = typeof(ContentIterator).GetMethod("get_Current")!; 188public static readonly MethodInfo ContentMergeCreate = typeof(ContentMergeIterator).GetMethod("Create")!; 189public static readonly MethodInfo ContentMergeNext = typeof(ContentMergeIterator).GetMethod("MoveNext")!; 190public static readonly MethodInfo ContentMergeCurrent = typeof(ContentMergeIterator).GetMethod("get_Current")!; 191public static readonly MethodInfo DescCreate = typeof(DescendantIterator).GetMethod("Create")!; 192public static readonly MethodInfo DescNext = typeof(DescendantIterator).GetMethod("MoveNext")!; 193public static readonly MethodInfo DescCurrent = typeof(DescendantIterator).GetMethod("get_Current")!; 194public static readonly MethodInfo DescMergeCreate = typeof(DescendantMergeIterator).GetMethod("Create")!; 195public static readonly MethodInfo DescMergeNext = typeof(DescendantMergeIterator).GetMethod("MoveNext")!; 196public static readonly MethodInfo DescMergeCurrent = typeof(DescendantMergeIterator).GetMethod("get_Current")!; 197public static readonly MethodInfo DiffCreate = typeof(DifferenceIterator).GetMethod("Create")!; 198public static readonly MethodInfo DiffNext = typeof(DifferenceIterator).GetMethod("MoveNext")!; 199public static readonly MethodInfo DiffCurrent = typeof(DifferenceIterator).GetMethod("get_Current")!; 200public static readonly MethodInfo DodMergeCreate = typeof(DodSequenceMerge).GetMethod("Create")!; 201public static readonly MethodInfo DodMergeAdd = typeof(DodSequenceMerge).GetMethod("AddSequence")!; 202public static readonly MethodInfo DodMergeSeq = typeof(DodSequenceMerge).GetMethod("MergeSequences")!; 203public static readonly MethodInfo ElemContentCreate = typeof(ElementContentIterator).GetMethod("Create")!; 204public static readonly MethodInfo ElemContentNext = typeof(ElementContentIterator).GetMethod("MoveNext")!; 205public static readonly MethodInfo ElemContentCurrent = typeof(ElementContentIterator).GetMethod("get_Current")!; 206public static readonly MethodInfo FollSibCreate = typeof(FollowingSiblingIterator).GetMethod("Create")!; 207public static readonly MethodInfo FollSibNext = typeof(FollowingSiblingIterator).GetMethod("MoveNext")!; 208public static readonly MethodInfo FollSibCurrent = typeof(FollowingSiblingIterator).GetMethod("get_Current")!; 209public static readonly MethodInfo FollSibMergeCreate = typeof(FollowingSiblingMergeIterator).GetMethod("Create")!; 210public static readonly MethodInfo FollSibMergeNext = typeof(FollowingSiblingMergeIterator).GetMethod("MoveNext")!; 211public static readonly MethodInfo FollSibMergeCurrent = typeof(FollowingSiblingMergeIterator).GetMethod("get_Current")!; 212public static readonly MethodInfo IdCreate = typeof(IdIterator).GetMethod("Create")!; 213public static readonly MethodInfo IdNext = typeof(IdIterator).GetMethod("MoveNext")!; 214public static readonly MethodInfo IdCurrent = typeof(IdIterator).GetMethod("get_Current")!; 215public static readonly MethodInfo InterCreate = typeof(IntersectIterator).GetMethod("Create")!; 216public static readonly MethodInfo InterNext = typeof(IntersectIterator).GetMethod("MoveNext")!; 217public static readonly MethodInfo InterCurrent = typeof(IntersectIterator).GetMethod("get_Current")!; 218public static readonly MethodInfo KindContentCreate = typeof(NodeKindContentIterator).GetMethod("Create")!; 219public static readonly MethodInfo KindContentNext = typeof(NodeKindContentIterator).GetMethod("MoveNext")!; 220public static readonly MethodInfo KindContentCurrent = typeof(NodeKindContentIterator).GetMethod("get_Current")!; 221public static readonly MethodInfo NmspCreate = typeof(NamespaceIterator).GetMethod("Create")!; 222public static readonly MethodInfo NmspNext = typeof(NamespaceIterator).GetMethod("MoveNext")!; 223public static readonly MethodInfo NmspCurrent = typeof(NamespaceIterator).GetMethod("get_Current")!; 224public static readonly MethodInfo NodeRangeCreate = typeof(NodeRangeIterator).GetMethod("Create")!; 225public static readonly MethodInfo NodeRangeNext = typeof(NodeRangeIterator).GetMethod("MoveNext")!; 226public static readonly MethodInfo NodeRangeCurrent = typeof(NodeRangeIterator).GetMethod("get_Current")!; 227public static readonly MethodInfo ParentCreate = typeof(ParentIterator).GetMethod("Create")!; 228public static readonly MethodInfo ParentNext = typeof(ParentIterator).GetMethod("MoveNext")!; 229public static readonly MethodInfo ParentCurrent = typeof(ParentIterator).GetMethod("get_Current")!; 230public static readonly MethodInfo PrecCreate = typeof(PrecedingIterator).GetMethod("Create")!; 231public static readonly MethodInfo PrecNext = typeof(PrecedingIterator).GetMethod("MoveNext")!; 232public static readonly MethodInfo PrecCurrent = typeof(PrecedingIterator).GetMethod("get_Current")!; 233public static readonly MethodInfo PreSibCreate = typeof(PrecedingSiblingIterator).GetMethod("Create")!; 234public static readonly MethodInfo PreSibNext = typeof(PrecedingSiblingIterator).GetMethod("MoveNext")!; 235public static readonly MethodInfo PreSibCurrent = typeof(PrecedingSiblingIterator).GetMethod("get_Current")!; 236public static readonly MethodInfo PreSibDOCreate = typeof(PrecedingSiblingDocOrderIterator).GetMethod("Create")!; 237public static readonly MethodInfo PreSibDONext = typeof(PrecedingSiblingDocOrderIterator).GetMethod("MoveNext")!; 238public static readonly MethodInfo PreSibDOCurrent = typeof(PrecedingSiblingDocOrderIterator).GetMethod("get_Current")!; 239public static readonly MethodInfo SortKeyCreate = typeof(XmlSortKeyAccumulator).GetMethod("Create")!; 240public static readonly MethodInfo SortKeyDateTime = typeof(XmlSortKeyAccumulator).GetMethod("AddDateTimeSortKey")!; 241public static readonly MethodInfo SortKeyDecimal = typeof(XmlSortKeyAccumulator).GetMethod("AddDecimalSortKey")!; 242public static readonly MethodInfo SortKeyDouble = typeof(XmlSortKeyAccumulator).GetMethod("AddDoubleSortKey")!; 243public static readonly MethodInfo SortKeyEmpty = typeof(XmlSortKeyAccumulator).GetMethod("AddEmptySortKey")!; 244public static readonly MethodInfo SortKeyFinish = typeof(XmlSortKeyAccumulator).GetMethod("FinishSortKeys")!; 245public static readonly MethodInfo SortKeyInt = typeof(XmlSortKeyAccumulator).GetMethod("AddIntSortKey")!; 246public static readonly MethodInfo SortKeyInteger = typeof(XmlSortKeyAccumulator).GetMethod("AddIntegerSortKey")!; 247public static readonly MethodInfo SortKeyKeys = typeof(XmlSortKeyAccumulator).GetMethod("get_Keys")!; 248public static readonly MethodInfo SortKeyString = typeof(XmlSortKeyAccumulator).GetMethod("AddStringSortKey")!; 249public static readonly MethodInfo UnionCreate = typeof(UnionIterator).GetMethod("Create")!; 250public static readonly MethodInfo UnionNext = typeof(UnionIterator).GetMethod("MoveNext")!; 251public static readonly MethodInfo UnionCurrent = typeof(UnionIterator).GetMethod("get_Current")!; 252public static readonly MethodInfo XPFollCreate = typeof(XPathFollowingIterator).GetMethod("Create")!; 253public static readonly MethodInfo XPFollNext = typeof(XPathFollowingIterator).GetMethod("MoveNext")!; 254public static readonly MethodInfo XPFollCurrent = typeof(XPathFollowingIterator).GetMethod("get_Current")!; 255public static readonly MethodInfo XPFollMergeCreate = typeof(XPathFollowingMergeIterator).GetMethod("Create")!; 256public static readonly MethodInfo XPFollMergeNext = typeof(XPathFollowingMergeIterator).GetMethod("MoveNext")!; 257public static readonly MethodInfo XPFollMergeCurrent = typeof(XPathFollowingMergeIterator).GetMethod("get_Current")!; 258public static readonly MethodInfo XPPrecCreate = typeof(XPathPrecedingIterator).GetMethod("Create")!; 259public static readonly MethodInfo XPPrecNext = typeof(XPathPrecedingIterator).GetMethod("MoveNext")!; 260public static readonly MethodInfo XPPrecCurrent = typeof(XPathPrecedingIterator).GetMethod("get_Current")!; 261public static readonly MethodInfo XPPrecDOCreate = typeof(XPathPrecedingDocOrderIterator).GetMethod("Create")!; 262public static readonly MethodInfo XPPrecDONext = typeof(XPathPrecedingDocOrderIterator).GetMethod("MoveNext")!; 263public static readonly MethodInfo XPPrecDOCurrent = typeof(XPathPrecedingDocOrderIterator).GetMethod("get_Current")!; 264public static readonly MethodInfo XPPrecMergeCreate = typeof(XPathPrecedingMergeIterator).GetMethod("Create")!; 265public static readonly MethodInfo XPPrecMergeNext = typeof(XPathPrecedingMergeIterator).GetMethod("MoveNext")!; 266public static readonly MethodInfo XPPrecMergeCurrent = typeof(XPathPrecedingMergeIterator).GetMethod("get_Current")!; 269public static readonly MethodInfo AddNewIndex = typeof(XmlQueryRuntime).GetMethod("AddNewIndex")!; 271public static readonly MethodInfo ChangeTypeXsltResult = typeof(XmlQueryRuntime).GetMethod("ChangeTypeXsltResult")!; 272public static readonly MethodInfo CompPos = typeof(XmlQueryRuntime).GetMethod("ComparePosition")!; 273public static readonly MethodInfo Context = typeof(XmlQueryRuntime).GetMethod("get_ExternalContext")!; 274public static readonly MethodInfo CreateCollation = typeof(XmlQueryRuntime).GetMethod("CreateCollation")!; 275public static readonly MethodInfo DocOrder = typeof(XmlQueryRuntime).GetMethod("DocOrderDistinct")!; 276public static readonly MethodInfo EndRtfConstr = typeof(XmlQueryRuntime).GetMethod("EndRtfConstruction")!; 277public static readonly MethodInfo EndSeqConstr = typeof(XmlQueryRuntime).GetMethod("EndSequenceConstruction")!; 278public static readonly MethodInfo FindIndex = typeof(XmlQueryRuntime).GetMethod("FindIndex")!; 279public static readonly MethodInfo GenId = typeof(XmlQueryRuntime).GetMethod("GenerateId")!; 280public static readonly MethodInfo GetAtomizedName = typeof(XmlQueryRuntime).GetMethod("GetAtomizedName")!; 281public static readonly MethodInfo GetCollation = typeof(XmlQueryRuntime).GetMethod("GetCollation")!; 282public static readonly MethodInfo GetEarly = typeof(XmlQueryRuntime).GetMethod("GetEarlyBoundObject")!; 283public static readonly MethodInfo GetNameFilter = typeof(XmlQueryRuntime).GetMethod("GetNameFilter")!; 284public static readonly MethodInfo GetOutput = typeof(XmlQueryRuntime).GetMethod("get_Output")!; 285public static readonly MethodInfo GetGlobalValue = typeof(XmlQueryRuntime).GetMethod("GetGlobalValue")!; 286public static readonly MethodInfo GetTypeFilter = typeof(XmlQueryRuntime).GetMethod("GetTypeFilter")!; 287public static readonly MethodInfo GlobalComputed = typeof(XmlQueryRuntime).GetMethod("IsGlobalComputed")!; 292public static readonly MethodInfo RtfConstr = typeof(XmlQueryRuntime).GetMethod("TextRtfConstruction")!; 293public static readonly MethodInfo SendMessage = typeof(XmlQueryRuntime).GetMethod("SendMessage")!; 296public static readonly MethodInfo SetGlobalValue = typeof(XmlQueryRuntime).GetMethod("SetGlobalValue")!; 297public static readonly MethodInfo StartRtfConstr = typeof(XmlQueryRuntime).GetMethod("StartRtfConstruction")!; 298public static readonly MethodInfo StartSeqConstr = typeof(XmlQueryRuntime).GetMethod("StartSequenceConstruction")!; 301public static readonly MethodInfo ThrowException = typeof(XmlQueryRuntime).GetMethod("ThrowException")!; 302public static readonly MethodInfo XsltLib = typeof(XmlQueryRuntime).GetMethod("get_XsltFunctions")!; 305public static readonly MethodInfo GetDataSource = typeof(XmlQueryContext).GetMethod("GetDataSource")!; 306public static readonly MethodInfo GetDefaultDataSource = typeof(XmlQueryContext).GetMethod("get_DefaultDataSource")!; 307public static readonly MethodInfo GetParam = typeof(XmlQueryContext).GetMethod("GetParameter")!; 312private static MethodInfo GetInvokeXsltLateBoundFunction() => typeof(XmlQueryContext).GetMethod("InvokeXsltLateBoundFunction")!; 315public static readonly MethodInfo IndexAdd = typeof(XmlILIndex).GetMethod("Add")!; 316public static readonly MethodInfo IndexLookup = typeof(XmlILIndex).GetMethod("Lookup")!; 319public static readonly MethodInfo ItemIsNode = typeof(XPathItem).GetMethod("get_IsNode")!; 320public static readonly MethodInfo Value = typeof(XPathItem).GetMethod("get_Value")!; 324public static readonly MethodInfo NavClone = typeof(XPathNavigator).GetMethod("Clone")!; 325public static readonly MethodInfo NavLocalName = typeof(XPathNavigator).GetMethod("get_LocalName")!; 327public static readonly MethodInfo NavMoveId = typeof(XPathNavigator).GetMethod("MoveToId")!; 328public static readonly MethodInfo NavMoveParent = typeof(XPathNavigator).GetMethod("MoveToParent")!; 329public static readonly MethodInfo NavMoveRoot = typeof(XPathNavigator).GetMethod("MoveToRoot")!; 330public static readonly MethodInfo NavMoveTo = typeof(XPathNavigator).GetMethod("MoveTo")!; 331public static readonly MethodInfo NavNmsp = typeof(XPathNavigator).GetMethod("get_NamespaceURI")!; 332public static readonly MethodInfo NavPrefix = typeof(XPathNavigator).GetMethod("get_Prefix")!; 333public static readonly MethodInfo NavSamePos = typeof(XPathNavigator).GetMethod("IsSamePosition")!; 334public static readonly MethodInfo NavType = typeof(XPathNavigator).GetMethod("get_NodeType")!; 339public static readonly MethodInfo EndElemStackName = typeof(XmlQueryOutput).GetMethod("WriteEndElement")!; 342public static readonly MethodInfo EndAttr = typeof(XmlQueryOutput).GetMethod("WriteEndAttribute")!; 343public static readonly MethodInfo Text = typeof(XmlQueryOutput).GetMethod("WriteString")!; 346public static readonly MethodInfo StartTree = typeof(XmlQueryOutput).GetMethod("StartTree")!; 347public static readonly MethodInfo EndTree = typeof(XmlQueryOutput).GetMethod("EndTree")!; 351public static readonly MethodInfo StartContentUn = typeof(XmlQueryOutput).GetMethod("StartElementContentUnchecked")!; 356public static readonly MethodInfo EndAttrUn = typeof(XmlQueryOutput).GetMethod("WriteEndAttributeUnchecked")!; 357public static readonly MethodInfo NamespaceDeclUn = typeof(XmlQueryOutput).GetMethod("WriteNamespaceDeclarationUnchecked")!; 358public static readonly MethodInfo TextUn = typeof(XmlQueryOutput).GetMethod("WriteStringUnchecked")!; 359public static readonly MethodInfo NoEntTextUn = typeof(XmlQueryOutput).GetMethod("WriteRawUnchecked")!; 361public static readonly MethodInfo StartRoot = typeof(XmlQueryOutput).GetMethod("WriteStartRoot")!; 362public static readonly MethodInfo EndRoot = typeof(XmlQueryOutput).GetMethod("WriteEndRoot")!; 371public static readonly MethodInfo NamespaceDecl = typeof(XmlQueryOutput).GetMethod("WriteNamespaceDeclaration")!; 372public static readonly MethodInfo StartComment = typeof(XmlQueryOutput).GetMethod("WriteStartComment")!; 373public static readonly MethodInfo CommentText = typeof(XmlQueryOutput).GetMethod("WriteCommentString")!; 374public static readonly MethodInfo EndComment = typeof(XmlQueryOutput).GetMethod("WriteEndComment")!; 375public static readonly MethodInfo StartPI = typeof(XmlQueryOutput).GetMethod("WriteStartProcessingInstruction")!; 376public static readonly MethodInfo PIText = typeof(XmlQueryOutput).GetMethod("WriteProcessingInstructionString")!; 377public static readonly MethodInfo EndPI = typeof(XmlQueryOutput).GetMethod("WriteEndProcessingInstruction")!; 378public static readonly MethodInfo WriteItem = typeof(XmlQueryOutput).GetMethod("WriteItem")!; 379public static readonly MethodInfo CopyOf = typeof(XmlQueryOutput).GetMethod("XsltCopyOf")!; 380public static readonly MethodInfo StartCopy = typeof(XmlQueryOutput).GetMethod("StartCopy")!; 381public static readonly MethodInfo EndCopy = typeof(XmlQueryOutput).GetMethod("EndCopy")!; 384public static readonly MethodInfo DecAdd = typeof(decimal).GetMethod("Add")!; 387public static readonly MethodInfo DecSub = typeof(decimal).GetMethod("Subtract")!; 388public static readonly MethodInfo DecMul = typeof(decimal).GetMethod("Multiply")!; 389public static readonly MethodInfo DecDiv = typeof(decimal).GetMethod("Divide")!; 390public static readonly MethodInfo DecRem = typeof(decimal).GetMethod("Remainder")!; 391public static readonly MethodInfo DecNeg = typeof(decimal).GetMethod("Negate")!; 392public static readonly MethodInfo QNameEq = typeof(XmlQualifiedName).GetMethod("Equals")!; 398public static readonly MethodInfo StrLen = typeof(string).GetMethod("get_Length")!; 425public static readonly MethodInfo StrCatCat = typeof(StringConcat).GetMethod("Concat")!; 426public static readonly MethodInfo StrCatClear = typeof(StringConcat).GetMethod("Clear")!; 427public static readonly MethodInfo StrCatResult = typeof(StringConcat).GetMethod("GetResult")!; 428public static readonly MethodInfo StrCatDelim = typeof(StringConcat).GetMethod("set_Delimiter")!; 431public static readonly MethodInfo NavsToItems = typeof(XmlILStorageConverter).GetMethod("NavigatorsToItems")!; 432public static readonly MethodInfo ItemsToNavs = typeof(XmlILStorageConverter).GetMethod("ItemsToNavigators")!; 435public static readonly MethodInfo SetDod = typeof(XmlQueryNodeSequence).GetMethod("set_IsDocOrderDistinct")!; 438public static readonly MethodInfo GetTypeFromHandle = typeof(Type).GetMethod("GetTypeFromHandle")!; 439public static readonly MethodInfo InitializeArray = typeof(System.Runtime.CompilerServices.RuntimeHelpers).GetMethod("InitializeArray")!;
System\Xml\Xsl\Runtime\XsltLibrary.cs (32)
20public static readonly MethodInfo FormatMessage = typeof(XsltLibrary).GetMethod("FormatMessage")!; 26public static readonly MethodInfo EqualityOperator = typeof(XsltLibrary).GetMethod("EqualityOperator")!; 27public static readonly MethodInfo RelationalOperator = typeof(XsltLibrary).GetMethod("RelationalOperator")!; 30public static readonly MethodInfo StartsWith = typeof(XsltFunctions).GetMethod("StartsWith")!; 31public static readonly MethodInfo Contains = typeof(XsltFunctions).GetMethod("Contains")!; 32public static readonly MethodInfo SubstringBefore = typeof(XsltFunctions).GetMethod("SubstringBefore")!; 33public static readonly MethodInfo SubstringAfter = typeof(XsltFunctions).GetMethod("SubstringAfter")!; 36public static readonly MethodInfo NormalizeSpace = typeof(XsltFunctions).GetMethod("NormalizeSpace")!; 37public static readonly MethodInfo Translate = typeof(XsltFunctions).GetMethod("Translate")!; 38public static readonly MethodInfo Lang = typeof(XsltFunctions).GetMethod("Lang")!; 41public static readonly MethodInfo Round = typeof(XsltFunctions).GetMethod("Round")!; 44public static readonly MethodInfo SystemProperty = typeof(XsltFunctions).GetMethod("SystemProperty")!; 45public static readonly MethodInfo BaseUri = typeof(XsltFunctions).GetMethod("BaseUri")!; 46public static readonly MethodInfo OuterXml = typeof(XsltFunctions).GetMethod("OuterXml")!; 47public static readonly MethodInfo OnCurrentNodeChanged = typeof(XmlQueryRuntime).GetMethod("OnCurrentNodeChanged")!; 50public static readonly MethodInfo MSFormatDateTime = typeof(XsltFunctions).GetMethod("MSFormatDateTime")!; 51public static readonly MethodInfo MSStringCompare = typeof(XsltFunctions).GetMethod("MSStringCompare")!; 52public static readonly MethodInfo MSUtc = typeof(XsltFunctions).GetMethod("MSUtc")!; 53public static readonly MethodInfo MSNumber = typeof(XsltFunctions).GetMethod("MSNumber")!; 54public static readonly MethodInfo MSLocalName = typeof(XsltFunctions).GetMethod("MSLocalName")!; 55public static readonly MethodInfo MSNamespaceUri = typeof(XsltFunctions).GetMethod("MSNamespaceUri")!; 58public static readonly MethodInfo EXslObjectType = typeof(XsltFunctions).GetMethod("EXslObjectType")!; 61public static readonly MethodInfo CheckScriptNamespace = typeof(XsltLibrary).GetMethod("CheckScriptNamespace")!; 66private static MethodInfo GetFunctionAvailableMethod() => typeof(XsltLibrary).GetMethod("FunctionAvailable")!; 67public static readonly MethodInfo ElementAvailable = typeof(XsltLibrary).GetMethod("ElementAvailable")!; 68public static readonly MethodInfo RegisterDecimalFormat = typeof(XsltLibrary).GetMethod("RegisterDecimalFormat")!; 69public static readonly MethodInfo RegisterDecimalFormatter = typeof(XsltLibrary).GetMethod("RegisterDecimalFormatter")!; 70public static readonly MethodInfo FormatNumberStatic = typeof(XsltLibrary).GetMethod("FormatNumberStatic")!; 71public static readonly MethodInfo FormatNumberDynamic = typeof(XsltLibrary).GetMethod("FormatNumberDynamic")!; 72public static readonly MethodInfo IsSameNodeSort = typeof(XsltLibrary).GetMethod("IsSameNodeSort")!; 73public static readonly MethodInfo LangToLcid = typeof(XsltLibrary).GetMethod("LangToLcid")!; 74public static readonly MethodInfo NumberFormat = typeof(XsltLibrary).GetMethod("NumberFormat")!;
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
212return type.GetMethod(name);
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
119MethodInfo methodInfo = sourceInterface.GetMethod(eventInfo.Name)!;
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
188internal static readonly MethodInfo GetRuntimeCallableWrapperMethod = typeof(IComImportAdapter).GetMethod(nameof(GetRuntimeCallableWrapper))!;
System.ServiceModel.Primitives.Tests (6)
Description\ContractDescriptionTest.cs (6)
217Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).GetMethod(nameof(IDescriptionTestsServiceBeginEndGenerated.BeginEcho)), operation.BeginMethod); 218Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).GetMethod(nameof(IDescriptionTestsServiceBeginEndGenerated.EndEcho)), operation.EndMethod); 222Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).GetMethod(nameof(IDescriptionTestsServiceBeginEndGenerated.BeginMessageRequestReply)), operation.BeginMethod); 223Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).GetMethod(nameof(IDescriptionTestsServiceBeginEndGenerated.EndMessageRequestReply)), operation.EndMethod); 234Assert.Equal(typeof(IDescriptionTestsService).GetMethod(nameof(IDescriptionTestsService.Echo)), operation.SyncMethod); 238Assert.Equal(typeof(IDescriptionTestsService).GetMethod(nameof(IDescriptionTestsService.MessageRequestReply)), operation.SyncMethod);
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (2)
163MethodInfo realMethod = (collectionType.GetMethod("Push") ?? collectionType.GetMethod("Enqueue"))!;
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (2)
121MethodInfo addMethod = (collectionType.GetMethod("Push") ?? collectionType.GetMethod("Enqueue"))!;
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCompiler.cs (2)
67private static MethodInfo SpanGetLengthMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Length")!; 102private static MethodInfo ArrayResizeMethod => field ??= typeof(Array).GetMethod("Resize")!.MakeGenericMethod(typeof(int));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
726MethodInfo? delegateInvoke = type.GetMethod("Invoke");
System.Windows.Forms.Design.Tests (3)
EnsureEditorsTests.cs (1)
168MethodInfo method = reflectType.GetMethod(methodName);
System\ComponentModel\Design\DesignerHostTests.cs (2)
3108Assert.Equal(typeof(IDesignerHost).GetMethod(nameof(IDesignerHost.Activate)), reflect.GetMethod(nameof(IDesignerHost.Activate), BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public)); 3109Assert.Equal(typeof(IDesignerHost).GetMethod(nameof(IDesignerHost.Activate)), reflect.GetMethod(nameof(IDesignerHost.Activate), BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public, null, Array.Empty<Type>(), Array.Empty<ParameterModifier>()));
System.Windows.Forms.Tests (1)
System\Windows\Forms\MonthCalendarTests.cs (1)
4479typeof(MonthCalendar).GetMethod(methodName).Invoke(calendar, methodName.Contains("All") ? null : new object[] { new DateTime(2022, 1, 1) });
System.Xaml (4)
System\Xaml\Schema\CollectionReflector.cs (4)
117addMethod = genericICollection.GetMethod(KnownStrings.Add); 412s_getEnumeratorMethod = typeof(IEnumerable).GetMethod(KnownStrings.GetEnumerator); 425s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add); 438s_dictionaryAddMethod = typeof(IDictionary).GetMethod(KnownStrings.Add);
System.Xaml.Tests (185)
System\Xaml\Replacements\EventConverterTests.cs (1)
54Assert.Equal(typeof(DelegateClass).GetMethod("Method"), actual.Method);
System\Xaml\Schema\XamlMemberInvokerTests.cs (14)
34MethodInfo getter = typeof(TestClass).GetMethod(nameof(TestClass.StaticGetter))!; 35MethodInfo setter = typeof(TestClass).GetMethod(nameof(TestClass.StaticSetter))!; 81MethodInfo getter = typeof(TestClass).GetMethod(nameof(TestClass.StaticGetter))!; 82MethodInfo setter = typeof(TestClass).GetMethod(nameof(TestClass.StaticSetter))!; 98MethodInfo setter = typeof(TestClass).GetMethod(nameof(TestClass.StaticSetter))!; 126MethodInfo getter = typeof(TestClass).GetMethod(nameof(TestClass.StaticGetter))!; 127MethodInfo setter = typeof(TestClass).GetMethod(nameof(TestClass.StaticSetter))!; 144MethodInfo getter = typeof(TestClass).GetMethod(nameof(TestClass.StaticGetter))!; 179MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 180MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!; 194MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 195MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!; 209MethodInfo getter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticGetter))!; 210MethodInfo setter = typeof(SerializeClass).GetMethod(nameof(SerializeClass.StaticSetter))!;
System\Xaml\Schema\XamlTypeInvokerTests.cs (8)
245typeof(ICollection<int>).GetMethod(nameof(ICollection<int>.Add)) 251typeof(ICollection<Array>).GetMethod(nameof(ICollection<Array>.Add)) 269typeof(ListAddGetEnumeratorClass).GetMethod(nameof(DictionaryAddGetEnumeratorClass.Add)) 287typeof(DictionaryAddGetEnumeratorClass).GetMethod(nameof(DictionaryAddGetEnumeratorClass.Add)) 297typeof(ICollection<int>).GetMethod(nameof(ICollection<int>.Add)) 465typeof(IEnumerable).GetMethod(nameof(IEnumerable.GetEnumerator)) 470typeof(IEnumerable).GetMethod(nameof(IEnumerable.GetEnumerator)) 475typeof(GetEnumeratorClass).GetMethod(nameof(GetEnumeratorClass.GetEnumerator))
System\Xaml\XamlMemberTests.cs (91)
160yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext() }; 161yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext() }; 162yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext() }; 163yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticGetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext() }; 183yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext(), null }; 184yield return new object?[] { "name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker }; 185yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext(), null }; 186yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticGetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext(), null }; 214MethodInfo getter = typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!; 232MethodInfo getter = typeof(AccessorClass).GetMethod(getterName)!; 242MethodInfo setter = typeof(AccessorClass).GetMethod(setterName)!; 249yield return new object[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext() }; 250yield return new object[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext() }; 270yield return new object?[] { "name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext(), null }; 271yield return new object?[] { "", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker }; 299MethodInfo adder = typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!; 316MethodInfo adder = typeof(AccessorClass).GetMethod(adderName)!; 815new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 826new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 903new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 908new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext()), 913new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 924new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 988new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 993new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext()), 998new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1009new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1050new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1061new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1145new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1150new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext()), 1155new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1166new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1230new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1235new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, null, new XamlSchemaContext()), 1240new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1251new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1534new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1545new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1553LookupUnderlyingMemberResult = typeof(AccessorClass).GetMethod(nameof(AccessorClass.ParameterlessSetMethod))! 1568new CustomXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()) 1611new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1616new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1621new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext()), 1632new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1637new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!, new XamlSchemaContext()), 1645LookupUnderlyingMemberResult = new CustomMethodInfo(typeof(AccessorClass).GetMethod(nameof(AccessorClass.StaticSetMethod))!) 1656LookupUnderlyingMemberResult = typeof(AccessorClass).GetMethod(nameof(AccessorClass.VoidGetMethod))! 1865new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1866typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))! 1870new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1881new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1914new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1915typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))! 1919new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1920typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))! 1930new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1931typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))! 1994new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 1995typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))! 1999new SubXamlMember("name", null, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 2000typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))! 2015new SubXamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 2016typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))! 2202yield return new object?[] { member, new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), false }; 2203yield return new object?[] { member, new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), false }; 2232new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 2238new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 2281new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.GetMethod))!, typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()), 2287new XamlMember("name", typeof(AccessorClass).GetMethod(nameof(AccessorClass.SetMethod))!, new XamlSchemaContext()),
System\Xaml\XamlTypeTests.cs (71)
737new XamlMember("", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new XamlSchemaContext()), 738new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 739new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 740new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 741new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 742new XamlMember("Event", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new XamlSchemaContext()), 743new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new XamlSchemaContext()), 744new XamlMember("GetOnlyIntProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new XamlSchemaContext()), 745new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new XamlSchemaContext()), 746new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new XamlSchemaContext()), 747new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 748new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 753new XamlMember("SetOnlyProperty", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new XamlSchemaContext()), 757new XamlMember("", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new XamlSchemaContext()), 758new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 759new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 760new XamlMember("Event", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new XamlSchemaContext()), 761new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new XamlSchemaContext()), 762new XamlMember("GetOnlyIntProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new XamlSchemaContext()), 763new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new XamlSchemaContext()), 764new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new XamlSchemaContext()), 765new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 768new XamlMember("SetOnlyProperty", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new XamlSchemaContext()) 776new XamlMember("", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new XamlSchemaContext()), 777new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 778new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 779new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 780new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 781new XamlMember("Event", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new XamlSchemaContext()), 782new XamlMember("GetOnlyDictionaryProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new XamlSchemaContext()), 783new XamlMember("GetOnlyIntProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new XamlSchemaContext()), 784new XamlMember("GetOnlyListProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new XamlSchemaContext()), 785new XamlMember("GetOnlyXDataProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new XamlSchemaContext()), 786new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 787new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 792new XamlMember("SetOnlyProperty", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new XamlSchemaContext()), 796new XamlMember("", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddHandler)), new XamlSchemaContext()), 797new XamlMember("DifferentFirstParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()), 798new XamlMember("DifferentSecondParameter", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()), 799new XamlMember("Event", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new XamlSchemaContext()), 800new XamlMember("GetOnlyDictionaryProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new XamlSchemaContext()), 801new XamlMember("GetOnlyIntProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyIntProperty)), null, new XamlSchemaContext()), 802new XamlMember("GetOnlyListProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new XamlSchemaContext()), 803new XamlMember("GetOnlyXDataProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new XamlSchemaContext()), 804new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()), 807new XamlMember("SetOnlyProperty", null, typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetSetOnlyProperty)), new XamlSchemaContext()) 850new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new XamlSchemaContext()), 851new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new XamlSchemaContext()), 852new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new XamlSchemaContext()), 853new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new XamlSchemaContext()), 854new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new XamlSchemaContext()), 855new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new XamlSchemaContext()) 859new XamlMember("DictionaryProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetDictionaryProperty)), null, new XamlSchemaContext()), 860new XamlMember("ListProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetListProperty)), null, new XamlSchemaContext()), 861new XamlMember("XDataProperty", typeof(NonMatchingInternalSetterClass).GetMethod(nameof(NonMatchingInternalSetterClass.GetXDataProperty)), null, new XamlSchemaContext()) 1531new XamlMember("GetSetProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetSetProperty)), typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()) 1561new XamlMember("GetOnlyListProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyListProperty)), null, new XamlSchemaContext()) 1567new XamlMember("GetOnlyDictionaryProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyDictionaryProperty)), null, new XamlSchemaContext()) 1573new XamlMember("GetOnlyXDataProperty", typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.GetGetOnlyXDataProperty)), null, new XamlSchemaContext()) 1579new XamlMember("DifferentFirstParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentFirstParameter)), new XamlSchemaContext()) 1585new XamlMember("DifferentSecondParameter", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.SetDifferentSecondParameter)), new XamlSchemaContext()) 1611new XamlMember("GetSetProperty", typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.GetGetSetProperty)), typeof(PrivateAttachableMembersDataClass).GetMethod(nameof(PrivateAttachableMembersDataClass.SetGetSetProperty)), new XamlSchemaContext()) 1637new XamlMember("Event", null, typeof(AttachableMembersDataClass).GetMethod(nameof(AttachableMembersDataClass.AddEventHandler)), new XamlSchemaContext())
VisualBasicRuntimeTest (1)
Program.cs (1)
148MethodInfo showMethod = dialogType.GetMethod("ShowProgressDialog");