561 references to GetMethod
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
2501var method = typeof(IApiReferenceExporter).GetMethod(nameof(IApiReferenceExporter.ExportApi));
Aspire.Hosting.Radius.Tests (1)
Secrets\AddRadiusSecretStoreTests.cs (1)
322.GetMethod(nameof(RadiusSecretStoreExtensions.AddRadiusSecretStore));
Aspire.Hosting.RemoteHost (3)
Ats\AtsCallbackProxyFactory.cs (1)
69var invokeMethod = delegateType.GetMethod("Invoke")!;
AtsCapabilityScanner.cs (2)
2175var invokeMethod = delegateType.GetMethod("Invoke"); 3176var invokeMethod = type.GetMethod("Invoke");
Aspire.Hosting.RemoteHost.Tests (17)
AtsContextFilterTests.cs (1)
96var method = typeof(AtsContextFilterTests).GetMethod(nameof(TryResolveCanonicalAssemblyName_ReportsAnUnmatchedName))!;
AttributeDataReaderTests.cs (7)
29var method = typeof(OfficialAttributeExports).GetMethod(nameof(OfficialAttributeExports.OfficialExportMethod))!; 40var method = typeof(ThirdPartyExports).GetMethod(nameof(ThirdPartyExports.ThirdPartyMethod))!; 99var method = typeof(OfficialAttributeExports).GetMethod(nameof(OfficialAttributeExports.OfficialUnionMethod))!; 112var method = typeof(ThirdPartyExports).GetMethod(nameof(ThirdPartyExports.ThirdPartyMethod))!; 122var method = typeof(OfficialAttributeExports).GetMethod(nameof(OfficialAttributeExports.ObsoleteExportMethod))!; 133var method = typeof(OfficialAttributeExports).GetMethod(nameof(OfficialAttributeExports.OverriddenNameMethod))!; 318.GetMethod("CompatibleMethod")!;
GenericMethodResolverTests.cs (9)
14var method = typeof(TestMethods).GetMethod(nameof(TestMethods.NonGenericMethod))!; 24var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericIdentity))!; 35var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericIdentity))!; 46var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericFromWrapper))!; 58var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericFromInterface))!; 70var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericIdentity))!; 81var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericPair))!; 94var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericIdentity))!; 105var method = typeof(TestMethods).GetMethod(nameof(TestMethods.GenericFromWrapper))!;
Aspire.Hosting.Rust.Tests (1)
CargoMetadataTests.cs (1)
268var readMethod = typeof(CargoMetadataReader).GetMethod(nameof(CargoMetadataReader.ReadAsync));
Aspire.RabbitMQ.Client.Tests (2)
AspireRabbitMQLoggingTests.cs (2)
242s_log.GetType().GetMethod("Info")!.Invoke(s_log, new object[] { message }); 250s_log.GetType().GetMethod("Warn")!.Invoke(s_log, new object[] { message });
Aspire.TerminalHost (3)
TerminalHostControlListener.cs (3)
217_target.GetType().GetMethod(nameof(TerminalHostControlRpcTarget.GetSessionAsync))!, 221_target.GetType().GetMethod(nameof(TerminalHostControlRpcTarget.GetInfoAsync))!, 225_target.GetType().GetMethod(nameof(TerminalHostControlRpcTarget.ShutdownAsync))!,
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");
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
183MethodInfo findMethod = keyedByTypeCollectionType.GetMethod("Find"); 197MethodInfo getXmlMappingsMethod = xmlSerializerOperationBehaviorType.GetMethod("GetXmlMappings");
GenerateDocumentationAndConfigFiles (1)
CodeFixerExtensions.cs (1)
76MethodInfo? method = fixer?.GetType().GetTypeInfo().GetMethod("RegisterCodeFixesAsync");
GetDocument.Insider (1)
src\f7b9961f39e9a94c\HostFactoryResolver.cs (1)
182var buildMethod = builder.GetType().GetMethod("Build");
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
94/// <item><see cref="System.Type.GetMethod(string)"/></item>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
94/// <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\aspnetcore\src\Grpc\JsonTranscoding\src\Shared\ServiceDescriptorHelpers.cs (1)
441var methodInfo = serviceType.GetMethod(methodDescriptor.Name);
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostBuilder.cs (1)
303typeof(IHostBuilder).GetMethod(nameof(IHostBuilder.ConfigureContainer))!
Microsoft.AspNetCore.Http.Extensions (13)
RequestDelegateFactory.cs (3)
113private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(EndpointFilterInvocationContext).GetMethod(nameof(EndpointFilterInvocationContext.GetArgument))!; 124private static readonly MethodInfo FormDataMapperMapMethod = typeof(FormDataMapper).GetMethod(nameof(FormDataMapper.Map))!; 126private static readonly MethodInfo ArrayPoolSharedReturnMethod = typeof(ArrayPool<char>).GetMethod(nameof(ArrayPool<char>.Shared.Return))!;
src\aspnetcore\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 (10)
src\aspnetcore\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.Testing (1)
src\f7b9961f39e9a94c\HostFactoryResolver.cs (1)
182var buildMethod = builder.GetType().GetMethod("Build");
Microsoft.AspNetCore.OpenApi (10)
src\aspnetcore\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\aspnetcore\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\aspnetcore\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\aspnetcore\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.TestHost (1)
src\f7b9961f39e9a94c\HostFactoryResolver.cs (1)
182var buildMethod = builder.GetType().GetMethod("Build");
Microsoft.CodeAnalysis.ExternalAccess.Extensions (1)
Internal\ExtensionMessageHandlerWrapper.cs (1)
29_executeAsyncMethod = customMessageHandlerInterface.GetMethod(nameof(ExecuteAsync)) ?? throw new ArgumentException(string.Format(ExternalAccessExtensionsResources.The_interface_0_does_not_contain_a_method_named_1, customMessageHandlerInterface.FullName, nameof(ExecuteAsync)), nameof(customMessageHandlerInterface));
Microsoft.CSharp (54)
Microsoft\CSharp\RuntimeBinder\BinderHelper.cs (2)
74MethodInfo isNaN = s_DoubleIsNaN ??= typeof(double).GetMethod("IsNaN"); 80MethodInfo isNaN = s_SingleIsNaN ??= typeof(float).GetMethod("IsNaN");
Microsoft\CSharp\RuntimeBinder\ComInterop\ComClassMetaObject.cs (1)
23typeof(ComTypeClassDesc).GetMethod(nameof(ComTypeClassDesc.CreateInstance))
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (10)
207Expression.Call(typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.GetIdsOfNamedParameters)), 281typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.IDispatchInvoke)), 298typeof(ComRuntimeHelpers).GetMethod(nameof(ComRuntimeHelpers.CheckThrowException)), 311typeof(BuiltInInteropVariantExtensions).GetMethod(nameof(BuiltInInteropVariantExtensions.ToObject)), 341typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.IUnknownRelease)), 365typeof(ComVariant).GetMethod(nameof(ComVariant.Dispose)) 377typeof(GCHandle).GetMethod(nameof(GCHandle.Free)) 418typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.ConvertVariantByrefToPtr)), 468typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.ConvertInt32ByrefToPtr)), 501typeof(Marshal).GetMethod(nameof(Marshal.GetIDispatchForObject)),
Microsoft\CSharp\RuntimeBinder\ComInterop\ComObject.cs (1)
80typeof(ComObject).GetMethod(nameof(ObjectToComObject)),
Microsoft\CSharp\RuntimeBinder\ComInterop\CurrencyArgBuilder.cs (2)
37typeof(decimal).GetMethod(nameof(decimal.ToOACurrency)), 49typeof(decimal).GetMethod(nameof(decimal.FromOACurrency)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DateTimeArgBuilder.cs (2)
25typeof(DateTime).GetMethod(nameof(DateTime.ToOADate)) 34typeof(DateTime).GetMethod(nameof(DateTime.FromOADate)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DispatchArgBuilder.cs (2)
48typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.GetIDispatchForObject)), 61typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DynamicVariantExtensions.cs (22)
268case VarEnum.VT_I1: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefI1)); 269case VarEnum.VT_I2: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefI2)); 270case VarEnum.VT_I4: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefI4)); 271case VarEnum.VT_I8: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefI8)); 272case VarEnum.VT_UI1: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUi1)); 273case VarEnum.VT_UI2: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUi2)); 274case VarEnum.VT_UI4: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUi4)); 275case VarEnum.VT_UI8: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUi8)); 276case VarEnum.VT_INT: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefInt)); 277case VarEnum.VT_UINT: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUint)); 278case VarEnum.VT_BOOL: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefBool)); 279case VarEnum.VT_ERROR: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefError)); 280case VarEnum.VT_R4: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefR4)); 281case VarEnum.VT_R8: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefR8)); 282case VarEnum.VT_DECIMAL: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefDecimal)); 283case VarEnum.VT_CY: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefCy)); 284case VarEnum.VT_DATE: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefDate)); 285case VarEnum.VT_BSTR: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefBstr)); 286case VarEnum.VT_UNKNOWN: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefUnknown)); 287case VarEnum.VT_DISPATCH: return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefDispatch)); 290return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefVariant)); 293return typeof(DynamicVariantExtensions).GetMethod(nameof(SetAsByrefVariantIndirect));
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (2)
116typeof(ComRuntimeHelpers).GetMethod(nameof(ComRuntimeHelpers.CreateDispCallable)), 129typeof(ComRuntimeHelpers).GetMethod(nameof(ComRuntimeHelpers.CreateComEvent)),
Microsoft\CSharp\RuntimeBinder\ComInterop\StringArgBuilder.cs (2)
47typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.StringToBSTR)), 59typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.PtrToStringBSTR)),
Microsoft\CSharp\RuntimeBinder\ComInterop\UnknownArgBuilder.cs (2)
48typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.GetIUnknownForObject)), 61typeof(Marshal).GetMethod(nameof(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown)),
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantArgBuilder.cs (1)
56typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.GetObjectForVariant)),
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantBuilder.cs (5)
68typeof(DynamicVariantExtensions).GetMethod(nameof(DynamicVariantExtensions.SetAsIConvertible)), 105return Expression.Call(typeof(UnsafeMethods).GetMethod(nameof(UnsafeMethods.IUnknownReleaseNotZero)), pUnk); 115return Expression.Call(typeof(Marshal).GetMethod(nameof(Marshal.FreeBSTR)), TempVariable); 133return Expression.Call(TempVariable, typeof(ComVariant).GetMethod(nameof(ComVariant.Dispose))); 151return Expression.Call(_variant, typeof(ComVariant).GetMethod(nameof(ComVariant.Dispose)));
Microsoft.Extensions.AI.Tests (13)
Functions\AIFunctionFactoryTest.cs (13)
37Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, (object?)null)); 39AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, (Func<AIFunctionArguments, object>)null!)); 40Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).GetMethod("Add")!, new List<int>())); 404MethodInfo overrideMethod = typeof(MyDerivedType).GetMethod(nameof(MyDerivedType.Method))!; 468MethodInfo overrideMethod = typeof(DerivedDescribed).GetMethod(nameof(DerivedDescribed.Compute))!; 715typeof(MyFunctionTypeWithOneArg).GetMethod(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!, 733typeof(MyFunctionTypeWithOneArg).GetMethod(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!, 744typeof(MyFunctionTypeWithOneArg).GetMethod(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!, 755typeof(MyFunctionTypeWithNoArgs).GetMethod(nameof(MyFunctionTypeWithNoArgs.StaticMethod))!, 763typeof(DisposableService).GetMethod(nameof(DisposableService.GetThis))!, 782typeof(AsyncDisposableService).GetMethod(nameof(AsyncDisposableService.GetThis))!, 801typeof(DisposableAndAsyncDisposableService).GetMethod(nameof(DisposableAndAsyncDisposableService.GetThis))!, 1667il.Emit(OpCodes.Call, typeof(Task).GetMethod(nameof(Task.FromResult))!.MakeGenericMethod(typeof(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.Extensions.VectorData.ConformanceTests (1)
TypeTests\DataTypeTests.cs (1)
238private static readonly MethodInfo _dynamicDictionaryIndexer = typeof(Dictionary<string, object?>).GetMethod("get_Item")!;
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.NET.Sdk.Publish.Tasks (2)
MsDeploy\DynamicAssembly.cs (2)
154var eventParams = handlerType?.GetMethod("Invoke")?.GetParameters(); 157MethodInfo? invokeMethod = d?.GetType().GetMethod("Invoke");
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)
2021MethodInfo methodInvoke = eventHandlerType.GetMethod("Invoke");
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)
44MethodInfo method = type.GetMethod("Invoke")!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
74private static readonly MethodInfo _mdvDictionaryTryGet = CtorArgumentTypes[0].GetMethod("TryGetValue")!;
System.Linq.Expressions (38)
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 (7)
42private static readonly MethodInfo s_FuncInvoke = typeof(Func<object?[], object?>).GetMethod("Invoke")!; 83return new MethodInfo[]{delHelpers.GetMethod("ActionThunk")!, 84delHelpers.GetMethod("ActionThunk1")!, 85delHelpers.GetMethod("ActionThunk2")!}; 91return new MethodInfo[]{delHelpers.GetMethod("FuncThunk")!, 92delHelpers.GetMethod("FuncThunk1")!, 93delHelpers.GetMethod("FuncThunk2")!};
System\Linq\Expressions\Common\CachedReflectionInfo.cs (4)
31public static MethodInfo Type_GetTypeFromHandle => field ??= typeof(Type).GetMethod(nameof(Type.GetTypeFromHandle))!; 32public static MethodInfo Object_GetType => field ??= typeof(object).GetMethod(nameof(object.GetType))!; 50public static MethodInfo RuntimeOps_MergeRuntimeVariables => field ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.MergeRuntimeVariables))!; 51public static MethodInfo RuntimeOps_Quote => field ??= 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 (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
132Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!); 155Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.GetMethod("get_Out")!);
System\Delegate.cs (1)
256return 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 interfaces[i].GetMethod(name); 1066addMethod = type.GetMethod(Globals.AddMethodName); 1067getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).GetMethod(Globals.GetEnumeratorMethodName)!; 1074addMethod = Globals.TypeOfICollectionGeneric.MakeGenericType(itemType).GetMethod(Globals.AddMethodName); 1076getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).GetMethod(Globals.GetEnumeratorMethodName)!; 1084addMethod = type.GetMethod(Globals.AddMethodName); 1093addMethod = type.GetMethod(Globals.AddMethodName); 1097getEnumeratorMethod = typeof(IEnumerable).GetMethod(Globals.GetEnumeratorMethodName)!; 1297addMethod = interfaces[i].GetMethod(Globals.AddMethodName) ?? addMethod; 1298getEnumeratorMethod = interfaces[i].GetMethod(Globals.GetEnumeratorMethodName) ?? getEnumeratorMethod;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (4)
89s_boxPointer = typeof(Pointer).GetMethod("Box"); 246s_ienumeratorMoveNextMethod = typeof(IEnumerator).GetMethod("MoveNext"); 282s_onDeserializationMethod = typeof(IDeserializationCallback).GetMethod("OnDeserialization"); 357s_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)
73internal static MethodInfo BoxPointer => field ??= typeof(Pointer).GetMethod("Box")!; 96s_ienumeratorMoveNextMethod = typeof(IEnumerator).GetMethod("MoveNext"); 182s_onDeserializationMethod = typeof(IDeserializationCallback).GetMethod("OnDeserialization"); 189internal static MethodInfo UnboxPointer => field ??= typeof(Pointer).GetMethod("Unbox")!; 910internal static MethodInfo ExtensionDataSetExplicitMethodInfo => field ??= typeof(IExtensibleDataObject).GetMethod(Globals.ExtensionDataSetMethod)!; 1019s_getTypeHandleMethod = typeof(Type).GetMethod("get_TypeHandle"); 1033s_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)
66MethodInfo? invokeMethodInfo = type.GetMethod("Invoke");
System.Private.Xml (243)
System\Xml\Serialization\Compilation.cs (1)
577MethodInfo? method = type.GetMethod(methodName);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
591MethodInfo? addMethod = targetCollectionType.GetMethod("Add"); 1778var addMethod = mapping.TypeDesc.Type!.GetMethod("Add");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3787ilg.Call(typeof(Span<bool>).GetMethod("get_Item")!); 3800ilg.Call(typeof(Span<bool>).GetMethod("get_Item")!);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
2472MethodInfo getDeclaredConstructors = typeof(TypeInfo).GetMethod("get_DeclaredConstructors")!; 2473MethodInfo getEnumerator = typeof(IEnumerable<>).MakeGenericType(typeof(ConstructorInfo)).GetMethod("GetEnumerator")!; 2480MethodInfo enumeratorCurrent = typeof(IEnumerator).GetMethod("get_Current")!; 2488MethodInfo constructorIsStatic = typeof(ConstructorInfo).GetMethod("get_IsStatic")!; 2492MethodInfo 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)
224return 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.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (2)
55s_taskGetResultMethodInfo = typeof(Task<>).GetMethod(TaskGetResultName); 57MethodInfo? getter = taskType.GetMethod(TaskGetResultName);
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
65if (declaringType == typeof(object) && method == typeof(object).GetMethod("GetType"))
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)
342MethodInfo realMethod = (collectionType.GetMethod("Push") ?? collectionType.GetMethod("Enqueue"))!;
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (2)
157MethodInfo addMethod = (collectionType.GetMethod("Push") ?? collectionType.GetMethod("Enqueue"))!;
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCompiler.cs (2)
68private static MethodInfo SpanGetLengthMethod => field ??= typeof(ReadOnlySpan<char>).GetMethod("get_Length")!; 104private 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.Xaml (4)
System\Xaml\Schema\CollectionReflector.cs (4)
116addMethod = genericICollection.GetMethod(KnownStrings.Add); 411s_getEnumeratorMethod = typeof(IEnumerable).GetMethod(KnownStrings.GetEnumerator); 424s_listAddMethod = typeof(IList).GetMethod(KnownStrings.Add); 437s_dictionaryAddMethod = typeof(IDictionary).GetMethod(KnownStrings.Add);