548 references to GetMethod
Aspire.Dashboard.Components.Tests (1)
Shared\DashboardPageTestContext.cs (1)
23
virtualizeJsInteropType.
GetMethod
("OnSpacerBeforeVisible")!);
Aspire.Hosting.CodeGeneration.TypeScript.Tests (1)
AtsTypeScriptCodeGeneratorTests.cs (1)
2824
var 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)
69
var invokeMethod = delegateType.
GetMethod
("Invoke")!;
AtsCapabilityScanner.cs (2)
2256
var invokeMethod = delegateType.
GetMethod
("Invoke");
3258
var invokeMethod = type.
GetMethod
("Invoke");
Aspire.Hosting.RemoteHost.Tests (18)
AtsContextFilterTests.cs (1)
96
var method = typeof(AtsContextFilterTests).
GetMethod
(nameof(TryResolveCanonicalAssemblyName_ReportsAnUnmatchedName))!;
AttributeDataReaderTests.cs (8)
29
var method = typeof(OfficialAttributeExports).
GetMethod
(nameof(OfficialAttributeExports.OfficialExportMethod))!;
40
var method = typeof(ThirdPartyExports).
GetMethod
(nameof(ThirdPartyExports.ThirdPartyMethod))!;
99
var method = typeof(OfficialAttributeExports).
GetMethod
(nameof(OfficialAttributeExports.OfficialUnionMethod))!;
112
var method = typeof(ThirdPartyExports).
GetMethod
(nameof(ThirdPartyExports.ThirdPartyMethod))!;
122
var method = typeof(OfficialAttributeExports).
GetMethod
(nameof(OfficialAttributeExports.ObsoleteExportMethod))!;
133
var method = typeof(OfficialAttributeExports).
GetMethod
("ExperimentalExportMethod")!;
173
var method = typeof(OfficialAttributeExports).
GetMethod
(nameof(OfficialAttributeExports.OverriddenNameMethod))!;
399
.
GetMethod
("CompatibleMethod")!;
GenericMethodResolverTests.cs (9)
14
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.NonGenericMethod))!;
24
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericIdentity))!;
35
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericIdentity))!;
46
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericFromWrapper))!;
58
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericFromInterface))!;
70
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericIdentity))!;
81
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericPair))!;
94
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericIdentity))!;
105
var method = typeof(TestMethods).
GetMethod
(nameof(TestMethods.GenericFromWrapper))!;
Aspire.Hosting.Rust.Tests (1)
CargoMetadataTests.cs (1)
268
var readMethod = typeof(CargoMetadataReader).
GetMethod
(nameof(CargoMetadataReader.ReadAsync));
Aspire.RabbitMQ.Client.Tests (2)
AspireRabbitMQLoggingTests.cs (2)
242
s_log.GetType().
GetMethod
("Info")!.Invoke(s_log, new object[] { message });
250
s_log.GetType().
GetMethod
("Warn")!.Invoke(s_log, new object[] { message });
Aspire.TerminalHost (3)
TerminalHostControlListener.cs (3)
205
_target.GetType().
GetMethod
(nameof(TerminalHostControlRpcTarget.GetSessionAsync))!,
209
_target.GetType().
GetMethod
(nameof(TerminalHostControlRpcTarget.GetInfoAsync))!,
213
_target.GetType().
GetMethod
(nameof(TerminalHostControlRpcTarget.ShutdownAsync))!,
dotnet-svcutil-lib (18)
FrameworkFork\Microsoft.Xml\Xml\Serialization\Compilation.cs (1)
107
MethodInfo method = type.
GetMethod
(methodName);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (2)
38
s_getTypeFromHandle = typeof(Type).
GetMethod
("GetTypeFromHandle");
192
MethodInfo signature = delegateType.
GetMethod
("Invoke");
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CollectionDataContract.cs (10)
985
return t.
GetMethod
(name);
1040
addMethod = type.
GetMethod
(Globals.AddMethodName);
1041
getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).
GetMethod
(Globals.GetEnumeratorMethodName);
1051
addMethod = collectionType.
GetMethod
(Globals.AddMethodName);
1054
getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).
GetMethod
(Globals.GetEnumeratorMethodName);
1062
addMethod = type.
GetMethod
(Globals.AddMethodName);
1071
addMethod = type.
GetMethod
(Globals.AddMethodName);
1075
getEnumeratorMethod = Globals.TypeOfIEnumerable.
GetMethod
(Globals.GetEnumeratorMethodName);
1223
addMethod = t.
GetMethod
(Globals.AddMethodName) ?? addMethod;
1224
getEnumeratorMethod = t.
GetMethod
(Globals.GetEnumeratorMethodName) ?? getEnumeratorMethod;
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\XmlFormatGeneratorStatics.cs (3)
111
s_ienumeratorMoveNextMethod = typeof(IEnumerator).
GetMethod
("MoveNext");
1006
s_getTypeHandleMethod = typeof(Type).
GetMethod
("get_TypeHandle");
1020
s_getTypeMethod = typeof(object).
GetMethod
("GetType");
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
65
if (declaringType == typeof(object) && method == typeof(object).
GetMethod
("GetType"))
Shared\ProjectPropertyResolver.cs (1)
54
var getPropertyValue = projType.
GetMethod
("GetPropertyValue");
dotnet-svcutil.xmlserializer (2)
Microsoft\Tools\ServiceModel\SvcUtil\XmlSerializerGenerator.cs (2)
183
MethodInfo findMethod = keyedByTypeCollectionType.
GetMethod
("Find");
197
MethodInfo getXmlMappingsMethod = xmlSerializerOperationBehaviorType.
GetMethod
("GetXmlMappings");
GenerateDocumentationAndConfigFiles (1)
CodeFixerExtensions.cs (1)
76
MethodInfo? method = fixer?.GetType().GetTypeInfo().
GetMethod
("RegisterCodeFixesAsync");
GetDocument.Insider (1)
src\8aa74720ad1535f5\HostFactoryResolver.cs (1)
182
var buildMethod = builder.GetType().
GetMethod
("Build");
Microsoft.Arcade.Common (2)
MSBuildTaskBase.cs (2)
70
return GetType().
GetMethod
(ExecuteMethodName).GetParameters().Select(p => p.ParameterType).ToArray();
90
return GetType().
GetMethod
(ExecuteMethodName);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (9)
Logging\IncomingHttpRouteUtilityTests.cs (9)
29
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest1Async))!.GetParameters();
67
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest2Async))!.GetParameters();
107
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest3Async))!.GetParameters();
149
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest4Async))!.GetParameters();
191
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest1Async))!.GetParameters();
238
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest5Async))!.GetParameters();
279
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest2Async))!.GetParameters();
327
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest2Async))!.GetParameters();
372
var parametersInfo = typeof(TestController).
GetMethod
(nameof(TestController.GetTest2Async))!.GetParameters();
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
parent\Shared\ServiceDescriptorHelpers.cs (1)
441
var methodInfo = serviceType.
GetMethod
(methodDescriptor.Name);
Microsoft.AspNetCore.Hosting (1)
GenericHost\GenericWebHostBuilder.cs (1)
303
typeof(IHostBuilder).
GetMethod
(nameof(IHostBuilder.ConfigureContainer))!
Microsoft.AspNetCore.Http.Extensions (13)
RequestDelegateFactory.cs (3)
113
private static readonly MethodInfo EndpointFilterInvocationContextGetArgument = typeof(EndpointFilterInvocationContext).
GetMethod
(nameof(EndpointFilterInvocationContext.GetArgument))!;
124
private static readonly MethodInfo FormDataMapperMapMethod = typeof(FormDataMapper).
GetMethod
(nameof(FormDataMapper.Map))!;
126
private static readonly MethodInfo ArrayPoolSharedReturnMethod = typeof(ArrayPool<char>).
GetMethod
(nameof(ArrayPool<char>.Shared.Return))!;
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386
private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).
GetMethod
("GetAwaiter")!;
387
private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
388
private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("GetResult")!;
389
private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("OnCompleted")!;
390
private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
392
private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).
GetMethod
("GetAwaiter")!;
393
private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
394
private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("GetResult")!;
395
private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("OnCompleted")!;
396
private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
Microsoft.AspNetCore.Mvc.Core (10)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386
private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).
GetMethod
("GetAwaiter")!;
387
private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
388
private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("GetResult")!;
389
private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("OnCompleted")!;
390
private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
392
private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).
GetMethod
("GetAwaiter")!;
393
private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
394
private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("GetResult")!;
395
private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("OnCompleted")!;
396
private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
Microsoft.AspNetCore.Mvc.Testing (1)
src\8aa74720ad1535f5\HostFactoryResolver.cs (1)
182
var buildMethod = builder.GetType().
GetMethod
("Build");
Microsoft.AspNetCore.OpenApi (10)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386
private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).
GetMethod
("GetAwaiter")!;
387
private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
388
private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("GetResult")!;
389
private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("OnCompleted")!;
390
private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
392
private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).
GetMethod
("GetAwaiter")!;
393
private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
394
private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("GetResult")!;
395
private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("OnCompleted")!;
396
private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
Microsoft.AspNetCore.SignalR.Client.Core (5)
src\aspnetcore\src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (5)
148
private static readonly MethodInfo _asyncEnumerableGetAsyncEnumeratorMethodInfo = typeof(IAsyncEnumerable<>).
GetMethod
("GetAsyncEnumerator")!;
176
private static readonly MethodInfo _asyncEnumeratorMoveNextAsyncMethodInfo = typeof(IAsyncEnumerator<>).
GetMethod
("MoveNextAsync")!;
177
private static readonly MethodInfo _asyncEnumeratorGetCurrentMethodInfo = typeof(IAsyncEnumerator<>).
GetMethod
("get_Current")!;
201
private static readonly MethodInfo _channelReaderTryReadMethodInfo = typeof(ChannelReader<>).
GetMethod
("TryRead")!;
202
private static readonly MethodInfo _channelReaderWaitToReadAsyncMethodInfo = typeof(ChannelReader<>).
GetMethod
("WaitToReadAsync")!;
Microsoft.AspNetCore.SignalR.Core (15)
src\aspnetcore\src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (10)
386
private static readonly MethodInfo _taskGetAwaiterMethodInfo = typeof(Task<>).
GetMethod
("GetAwaiter")!;
387
private static readonly MethodInfo _taskAwaiterGetIsCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
388
private static readonly MethodInfo _taskAwaiterGetResultMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("GetResult")!;
389
private static readonly MethodInfo _taskAwaiterOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("OnCompleted")!;
390
private static readonly MethodInfo _taskAwaiterUnsafeOnCompletedMethodInfo = typeof(TaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
392
private static readonly MethodInfo _valueTaskGetAwaiterMethodInfo = typeof(ValueTask<>).
GetMethod
("GetAwaiter")!;
393
private static readonly MethodInfo _valueTaskAwaiterGetIsCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("get_IsCompleted")!;
394
private static readonly MethodInfo _valueTaskAwaiterGetResultMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("GetResult")!;
395
private static readonly MethodInfo _valueTaskAwaiterOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("OnCompleted")!;
396
private static readonly MethodInfo _valueTaskAwaiterUnsafeOnCompletedMethodInfo = typeof(ValueTaskAwaiter<>).
GetMethod
("UnsafeOnCompleted")!;
src\aspnetcore\src\SignalR\common\Shared\AsyncEnumerableAdapters.cs (5)
148
private static readonly MethodInfo _asyncEnumerableGetAsyncEnumeratorMethodInfo = typeof(IAsyncEnumerable<>).
GetMethod
("GetAsyncEnumerator")!;
176
private static readonly MethodInfo _asyncEnumeratorMoveNextAsyncMethodInfo = typeof(IAsyncEnumerator<>).
GetMethod
("MoveNextAsync")!;
177
private static readonly MethodInfo _asyncEnumeratorGetCurrentMethodInfo = typeof(IAsyncEnumerator<>).
GetMethod
("get_Current")!;
201
private static readonly MethodInfo _channelReaderTryReadMethodInfo = typeof(ChannelReader<>).
GetMethod
("TryRead")!;
202
private static readonly MethodInfo _channelReaderWaitToReadAsyncMethodInfo = typeof(ChannelReader<>).
GetMethod
("WaitToReadAsync")!;
Microsoft.AspNetCore.TestHost (1)
src\8aa74720ad1535f5\HostFactoryResolver.cs (1)
182
var 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)
74
MethodInfo isNaN = s_DoubleIsNaN ??= typeof(double).
GetMethod
("IsNaN");
80
MethodInfo isNaN = s_SingleIsNaN ??= typeof(float).
GetMethod
("IsNaN");
Microsoft\CSharp\RuntimeBinder\ComInterop\ComClassMetaObject.cs (1)
23
typeof(ComTypeClassDesc).
GetMethod
(nameof(ComTypeClassDesc.CreateInstance))
Microsoft\CSharp\RuntimeBinder\ComInterop\ComInvokeBinder.cs (10)
207
Expression.Call(typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.GetIdsOfNamedParameters)),
281
typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.IDispatchInvoke)),
298
typeof(ComRuntimeHelpers).
GetMethod
(nameof(ComRuntimeHelpers.CheckThrowException)),
311
typeof(BuiltInInteropVariantExtensions).
GetMethod
(nameof(BuiltInInteropVariantExtensions.ToObject)),
341
typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.IUnknownRelease)),
365
typeof(ComVariant).
GetMethod
(nameof(ComVariant.Dispose))
377
typeof(GCHandle).
GetMethod
(nameof(GCHandle.Free))
418
typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.ConvertVariantByrefToPtr)),
468
typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.ConvertInt32ByrefToPtr)),
501
typeof(Marshal).
GetMethod
(nameof(Marshal.GetIDispatchForObject)),
Microsoft\CSharp\RuntimeBinder\ComInterop\ComObject.cs (1)
81
typeof(ComObject).
GetMethod
(nameof(ObjectToComObject)),
Microsoft\CSharp\RuntimeBinder\ComInterop\CurrencyArgBuilder.cs (2)
37
typeof(decimal).
GetMethod
(nameof(decimal.ToOACurrency)),
49
typeof(decimal).
GetMethod
(nameof(decimal.FromOACurrency)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DateTimeArgBuilder.cs (2)
25
typeof(DateTime).
GetMethod
(nameof(DateTime.ToOADate))
34
typeof(DateTime).
GetMethod
(nameof(DateTime.FromOADate)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DispatchArgBuilder.cs (2)
48
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.GetIDispatchForObject)),
61
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown)),
Microsoft\CSharp\RuntimeBinder\ComInterop\DynamicVariantExtensions.cs (22)
268
case VarEnum.VT_I1: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefI1));
269
case VarEnum.VT_I2: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefI2));
270
case VarEnum.VT_I4: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefI4));
271
case VarEnum.VT_I8: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefI8));
272
case VarEnum.VT_UI1: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUi1));
273
case VarEnum.VT_UI2: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUi2));
274
case VarEnum.VT_UI4: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUi4));
275
case VarEnum.VT_UI8: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUi8));
276
case VarEnum.VT_INT: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefInt));
277
case VarEnum.VT_UINT: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUint));
278
case VarEnum.VT_BOOL: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefBool));
279
case VarEnum.VT_ERROR: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefError));
280
case VarEnum.VT_R4: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefR4));
281
case VarEnum.VT_R8: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefR8));
282
case VarEnum.VT_DECIMAL: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefDecimal));
283
case VarEnum.VT_CY: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefCy));
284
case VarEnum.VT_DATE: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefDate));
285
case VarEnum.VT_BSTR: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefBstr));
286
case VarEnum.VT_UNKNOWN: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefUnknown));
287
case VarEnum.VT_DISPATCH: return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefDispatch));
290
return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefVariant));
293
return typeof(DynamicVariantExtensions).
GetMethod
(nameof(SetAsByrefVariantIndirect));
Microsoft\CSharp\RuntimeBinder\ComInterop\IDispatchMetaObject.cs (2)
116
typeof(ComRuntimeHelpers).
GetMethod
(nameof(ComRuntimeHelpers.CreateDispCallable)),
129
typeof(ComRuntimeHelpers).
GetMethod
(nameof(ComRuntimeHelpers.CreateComEvent)),
Microsoft\CSharp\RuntimeBinder\ComInterop\StringArgBuilder.cs (2)
47
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.StringToBSTR)),
59
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.PtrToStringBSTR)),
Microsoft\CSharp\RuntimeBinder\ComInterop\UnknownArgBuilder.cs (2)
48
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.GetIUnknownForObject)),
61
typeof(Marshal).
GetMethod
(nameof(System.Runtime.InteropServices.Marshal.GetObjectForIUnknown)),
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantArgBuilder.cs (1)
56
typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.GetObjectForVariant)),
Microsoft\CSharp\RuntimeBinder\ComInterop\VariantBuilder.cs (5)
68
typeof(DynamicVariantExtensions).
GetMethod
(nameof(DynamicVariantExtensions.SetAsIConvertible)),
105
return Expression.Call(typeof(UnsafeMethods).
GetMethod
(nameof(UnsafeMethods.IUnknownReleaseNotZero)), pUnk);
115
return Expression.Call(typeof(Marshal).
GetMethod
(nameof(Marshal.FreeBSTR)), TempVariable);
133
return Expression.Call(TempVariable, typeof(ComVariant).
GetMethod
(nameof(ComVariant.Dispose)));
151
return Expression.Call(_variant, typeof(ComVariant).
GetMethod
(nameof(ComVariant.Dispose)));
Microsoft.Extensions.AI.Tests (13)
Functions\AIFunctionFactoryTest.cs (13)
37
Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).
GetMethod
(nameof(InvalidArguments_Throw))!, (object?)null));
39
AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).
GetMethod
(nameof(InvalidArguments_Throw))!, (Func<AIFunctionArguments, object>)null!));
40
Assert.Throws<ArgumentException>("method", () => AIFunctionFactory.Create(typeof(List<>).
GetMethod
("Add")!, new List<int>()));
404
MethodInfo overrideMethod = typeof(MyDerivedType).
GetMethod
(nameof(MyDerivedType.Method))!;
468
MethodInfo overrideMethod = typeof(DerivedDescribed).
GetMethod
(nameof(DerivedDescribed.Compute))!;
715
typeof(MyFunctionTypeWithOneArg).
GetMethod
(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!,
733
typeof(MyFunctionTypeWithOneArg).
GetMethod
(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!,
744
typeof(MyFunctionTypeWithOneArg).
GetMethod
(nameof(MyFunctionTypeWithOneArg.InstanceMethod))!,
755
typeof(MyFunctionTypeWithNoArgs).
GetMethod
(nameof(MyFunctionTypeWithNoArgs.StaticMethod))!,
763
typeof(DisposableService).
GetMethod
(nameof(DisposableService.GetThis))!,
782
typeof(AsyncDisposableService).
GetMethod
(nameof(AsyncDisposableService.GetThis))!,
801
typeof(DisposableAndAsyncDisposableService).
GetMethod
(nameof(DisposableAndAsyncDisposableService.GetThis))!,
1667
il.Emit(OpCodes.Call, typeof(Task).
GetMethod
(nameof(Task.FromResult))!.MakeGenericMethod(typeof(int)));
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ILEmit\ILEmitResolverBuilder.cs (1)
35
private static readonly MethodInfo GetTypeFromHandleMethod = typeof(Type).
GetMethod
(nameof(Type.GetTypeFromHandle))!;
ServiceLookup\ServiceLookupHelpers.cs (1)
15
private static readonly MethodInfo ArrayEmptyMethodInfo = typeof(Array).
GetMethod
(nameof(Array.Empty))!;
Microsoft.Extensions.VectorData.ConformanceTests (1)
TypeTests\DataTypeTests.cs (1)
238
private static readonly MethodInfo _dynamicDictionaryIndexer = typeof(Dictionary<string, object?>).
GetMethod
("get_Item")!;
Microsoft.JSInterop (1)
Infrastructure\DotNetDispatcher.cs (1)
394
var asTaskMethod = valueTaskType.
GetMethod
(nameof(ValueTask<object>.AsTask))!;
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)
179
var meth = sigType.
GetMethod
("Invoke");
211
meth = sigType.
GetMethod
("Invoke");
Microsoft.ML.OnnxTransformer (4)
OnnxTypeParser.cs (4)
302
var accessInfo = typeof(Tensor<>).
GetMethod
(nameof(Tensor<int>.GetValue));
321
var methodInfo = typeof(NamedOnnxValue).
GetMethod
(nameof(NamedOnnxValue.AsTensor));
347
var methodInfo = typeof(CastHelper).
GetMethod
(nameof(CastHelper.CastOnnxSequenceToIEnumerable));
370
var 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)
154
var eventParams = handlerType?.
GetMethod
("Invoke")?.GetParameters();
157
MethodInfo? invokeMethod = d?.GetType().
GetMethod
("Invoke");
PresentationBuildTasks (1)
MS\Internal\MarkupCompiler\MarkupCompiler.cs (1)
2021
MethodInfo methodInvoke = eventHandlerType.
GetMethod
("Invoke");
System.ComponentModel.Composition (7)
Microsoft\Internal\GenerationServices.cs (2)
17
private static readonly MethodInfo s_typeGetTypeFromHandleMethod = typeof(Type).
GetMethod
("GetTypeFromHandle")!;
38
private static readonly MethodInfo DictionaryAdd = typeof(IDictionary).
GetMethod
("Add")!;
System\ComponentModel\Composition\ConstraintServices.cs (3)
18
private static readonly MethodInfo _metadataContainsKeyMethod = typeof(IDictionary<string, object>).
GetMethod
("ContainsKey")!;
19
private static readonly MethodInfo _metadataItemMethod = typeof(IDictionary<string, object>).
GetMethod
("get_Item")!;
21
private static readonly MethodInfo _typeIsInstanceOfTypeMethod = typeof(Type).
GetMethod
("IsInstanceOfType")!;
System\ComponentModel\Composition\ContractNameServices.cs (1)
44
MethodInfo method = type.
GetMethod
("Invoke")!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
74
private static readonly MethodInfo _mdvDictionaryTryGet = CtorArgumentTypes[0].
GetMethod
("TryGetValue")!;
System.Linq.Expressions (38)
System\Dynamic\ExpandoObject.cs (5)
23
typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.ExpandoTryGetValue))!;
26
typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.ExpandoTrySetValue))!;
29
typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.ExpandoTryDeleteValue))!;
32
typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.ExpandoPromoteClass))!;
35
typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.ExpandoCheckVersion))!;
System\Dynamic\Utils\CachedReflectionInfo.cs (15)
22
s_CallSiteOps_SetNotMatched ??= typeof(CallSiteOps).
GetMethod
(nameof(CallSiteOps.SetNotMatched))!;
26
s_CallSiteOps_GetMatch ??= typeof(CallSiteOps).
GetMethod
(nameof(CallSiteOps.GetMatch))!;
30
s_CallSiteOps_ClearMatch ??= typeof(CallSiteOps).
GetMethod
(nameof(CallSiteOps.ClearMatch))!;
34
s_DynamicObject_TryGetMember ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryGetMember))!;
38
s_DynamicObject_TrySetMember ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TrySetMember))!;
42
s_DynamicObject_TryDeleteMember ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryDeleteMember))!;
46
s_DynamicObject_TryGetIndex ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryGetIndex))!;
50
s_DynamicObject_TrySetIndex ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TrySetIndex))!;
54
s_DynamicObject_TryDeleteIndex ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryDeleteIndex))!;
58
s_DynamicObject_TryConvert ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryConvert))!;
62
s_DynamicObject_TryInvoke ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryInvoke))!;
66
s_DynamicObject_TryInvokeMember ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryInvokeMember))!;
70
s_DynamicObject_TryBinaryOperation ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryBinaryOperation))!;
74
s_DynamicObject_TryUnaryOperation ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryUnaryOperation))!;
78
s_DynamicObject_TryCreateInstance ??= typeof(DynamicObject).
GetMethod
(nameof(DynamicObject.TryCreateInstance))!;
System\Dynamic\Utils\DelegateHelpers.cs (7)
42
private static readonly MethodInfo s_FuncInvoke = typeof(Func<object?[], object?>).
GetMethod
("Invoke")!;
83
return new MethodInfo[]{delHelpers.
GetMethod
("ActionThunk")!,
84
delHelpers.
GetMethod
("ActionThunk1")!,
85
delHelpers.
GetMethod
("ActionThunk2")!};
91
return new MethodInfo[]{delHelpers.
GetMethod
("FuncThunk")!,
92
delHelpers.
GetMethod
("FuncThunk1")!,
93
delHelpers.
GetMethod
("FuncThunk2")!};
System\Linq\Expressions\Common\CachedReflectionInfo.cs (4)
31
public static MethodInfo Type_GetTypeFromHandle => field ??= typeof(Type).
GetMethod
(nameof(Type.GetTypeFromHandle))!;
32
public static MethodInfo Object_GetType => field ??= typeof(object).
GetMethod
(nameof(object.GetType))!;
50
public static MethodInfo RuntimeOps_MergeRuntimeVariables => field ??= typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.MergeRuntimeVariables))!;
51
public static MethodInfo RuntimeOps_Quote => field ??= typeof(RuntimeOps).
GetMethod
(nameof(RuntimeOps.Quote))!;
System\Linq\Expressions\Interpreter\CallInstruction.cs (3)
130
typeof(CallInstruction).
GetMethod
(nameof(ArrayItemSetter1));
136
typeof(CallInstruction).
GetMethod
(nameof(ArrayItemSetter2));
142
typeof(CallInstruction).
GetMethod
(nameof(ArrayItemSetter3));
System\Linq\Expressions\MemberExpression.cs (1)
344
if (type.IsInterface && method.Name == propertyMethod.Name && type.
GetMethod
(method.Name) == propertyMethod)
System\Runtime\CompilerServices\CallSite.cs (2)
102
MethodInfo method = typeof(CallSite<>).MakeGenericType(delegateType).
GetMethod
(nameof(Create))!;
675
typeof(CallSiteOps).
GetMethod
(nameof(CallSiteOps.SetNotMatched))!,
System\Runtime\CompilerServices\CallSiteHelpers.cs (1)
14
private static readonly Type s_knownNonDynamicMethodType = typeof(object).
GetMethod
(nameof(ToString))!.GetType();
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
132
Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.
GetMethod
("get_Out")!);
155
Emit(OpCodes.Call, Type.GetType(ConsoleTypeFullName, throwOnError: true)!.
GetMethod
("get_Out")!);
System.Private.DataContractSerialization (26)
System\Runtime\Serialization\CodeGenerator.cs (2)
24
s_getTypeFromHandle = typeof(Type).
GetMethod
("GetTypeFromHandle");
92
return delegateType.
GetMethod
("Invoke")!;
System\Runtime\Serialization\CollectionDataContract.cs (10)
997
return interfaces[i].
GetMethod
(name);
1066
addMethod = type.
GetMethod
(Globals.AddMethodName);
1067
getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(Globals.TypeOfKeyValuePair.MakeGenericType(genericArgs)).
GetMethod
(Globals.GetEnumeratorMethodName)!;
1074
addMethod = Globals.TypeOfICollectionGeneric.MakeGenericType(itemType).
GetMethod
(Globals.AddMethodName);
1076
getEnumeratorMethod = Globals.TypeOfIEnumerableGeneric.MakeGenericType(itemType).
GetMethod
(Globals.GetEnumeratorMethodName)!;
1084
addMethod = type.
GetMethod
(Globals.AddMethodName);
1093
addMethod = type.
GetMethod
(Globals.AddMethodName);
1097
getEnumeratorMethod = typeof(IEnumerable).
GetMethod
(Globals.GetEnumeratorMethodName)!;
1297
addMethod = interfaces[i].
GetMethod
(Globals.AddMethodName) ?? addMethod;
1298
getEnumeratorMethod = interfaces[i].
GetMethod
(Globals.GetEnumeratorMethodName) ?? getEnumeratorMethod;
System\Runtime\Serialization\Json\JsonFormatGeneratorStatics.cs (4)
89
s_boxPointer = typeof(Pointer).
GetMethod
("Box");
246
s_ienumeratorMoveNextMethod = typeof(IEnumerator).
GetMethod
("MoveNext");
282
s_onDeserializationMethod = typeof(IDeserializationCallback).
GetMethod
("OnDeserialization");
357
s_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)
73
internal static MethodInfo BoxPointer => field ??= typeof(Pointer).
GetMethod
("Box")!;
96
s_ienumeratorMoveNextMethod = typeof(IEnumerator).
GetMethod
("MoveNext");
182
s_onDeserializationMethod = typeof(IDeserializationCallback).
GetMethod
("OnDeserialization");
189
internal static MethodInfo UnboxPointer => field ??= typeof(Pointer).
GetMethod
("Unbox")!;
910
internal static MethodInfo ExtensionDataSetExplicitMethodInfo => field ??= typeof(IExtensibleDataObject).
GetMethod
(Globals.ExtensionDataSetMethod)!;
1019
s_getTypeHandleMethod = typeof(Type).
GetMethod
("get_TypeHandle");
1033
s_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)
66
MethodInfo? invokeMethodInfo = type.
GetMethod
("Invoke");
System.Private.Xml (243)
System\Xml\Serialization\Compilation.cs (1)
577
MethodInfo? method = type.
GetMethod
(methodName);
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (2)
591
MethodInfo? addMethod = targetCollectionType.
GetMethod
("Add");
1778
var addMethod = mapping.TypeDesc.Type!.
GetMethod
("Add");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
3787
ilg.Call(typeof(Span<bool>).
GetMethod
("get_Item")!);
3800
ilg.Call(typeof(Span<bool>).
GetMethod
("get_Item")!);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (5)
2472
MethodInfo getDeclaredConstructors = typeof(TypeInfo).
GetMethod
("get_DeclaredConstructors")!;
2473
MethodInfo getEnumerator = typeof(IEnumerable<>).MakeGenericType(typeof(ConstructorInfo)).
GetMethod
("GetEnumerator")!;
2480
MethodInfo enumeratorCurrent = typeof(IEnumerator).
GetMethod
("get_Current")!;
2488
MethodInfo constructorIsStatic = typeof(ConstructorInfo).
GetMethod
("get_IsStatic")!;
2492
MethodInfo constructorGetParameters = typeof(ConstructorInfo).
GetMethod
("GetParameters")!;
System\Xml\Xsl\IlGen\GenerateHelper.cs (201)
84
AggAvg = aggType.
GetMethod
("Average");
85
AggAvgResult = aggType.
GetMethod
("get_AverageResult");
86
AggCreate = aggType.
GetMethod
("Create");
87
AggIsEmpty = aggType.
GetMethod
("get_IsEmpty");
88
AggMax = aggType.
GetMethod
("Maximum");
89
AggMaxResult = aggType.
GetMethod
("get_MaximumResult");
90
AggMin = aggType.
GetMethod
("Minimum");
91
AggMinResult = aggType.
GetMethod
("get_MinimumResult");
92
AggSum = aggType.
GetMethod
("Sum");
93
AggSumResult = aggType.
GetMethod
("get_SumResult");
102
SeqAdd = sequenceType.
GetMethod
("AddClone")!;
107
SeqAdd = sequenceType.
GetMethod
("AddClone")!;
112
SeqAdd = sequenceType.
GetMethod
("Add")!;
120
SeqSortByKeys = sequenceType.
GetMethod
("SortByKeys")!;
125
IListItem = listType.
GetMethod
("get_Item")!;
127
IListCount = typeof(ICollection<>).MakeGenericType(storageType).
GetMethod
("get_Count")!;
131
ValueAs = typeof(XPathItem).
GetMethod
("get_Value");
133
ValueAs = typeof(XPathItem).
GetMethod
("get_ValueAsInt");
135
ValueAs = typeof(XPathItem).
GetMethod
("get_ValueAsLong");
137
ValueAs = typeof(XPathItem).
GetMethod
("get_ValueAsDateTime");
139
ValueAs = typeof(XPathItem).
GetMethod
("get_ValueAsDouble");
141
ValueAs = typeof(XPathItem).
GetMethod
("get_ValueAsBoolean");
145
ToAtomicValue = typeof(XmlILStorageConverter).
GetMethod
("BytesToAtomicValue");
147
ToAtomicValue = typeof(XmlILStorageConverter).
GetMethod
($"{storageType.Name}ToAtomicValue");
173
public static readonly MethodInfo AncCreate = typeof(AncestorIterator).
GetMethod
("Create")!;
174
public static readonly MethodInfo AncNext = typeof(AncestorIterator).
GetMethod
("MoveNext")!;
175
public static readonly MethodInfo AncCurrent = typeof(AncestorIterator).
GetMethod
("get_Current")!;
176
public static readonly MethodInfo AncDOCreate = typeof(AncestorDocOrderIterator).
GetMethod
("Create")!;
177
public static readonly MethodInfo AncDONext = typeof(AncestorDocOrderIterator).
GetMethod
("MoveNext")!;
178
public static readonly MethodInfo AncDOCurrent = typeof(AncestorDocOrderIterator).
GetMethod
("get_Current")!;
179
public static readonly MethodInfo AttrContentCreate = typeof(AttributeContentIterator).
GetMethod
("Create")!;
180
public static readonly MethodInfo AttrContentNext = typeof(AttributeContentIterator).
GetMethod
("MoveNext")!;
181
public static readonly MethodInfo AttrContentCurrent = typeof(AttributeContentIterator).
GetMethod
("get_Current")!;
182
public static readonly MethodInfo AttrCreate = typeof(AttributeIterator).
GetMethod
("Create")!;
183
public static readonly MethodInfo AttrNext = typeof(AttributeIterator).
GetMethod
("MoveNext")!;
184
public static readonly MethodInfo AttrCurrent = typeof(AttributeIterator).
GetMethod
("get_Current")!;
185
public static readonly MethodInfo ContentCreate = typeof(ContentIterator).
GetMethod
("Create")!;
186
public static readonly MethodInfo ContentNext = typeof(ContentIterator).
GetMethod
("MoveNext")!;
187
public static readonly MethodInfo ContentCurrent = typeof(ContentIterator).
GetMethod
("get_Current")!;
188
public static readonly MethodInfo ContentMergeCreate = typeof(ContentMergeIterator).
GetMethod
("Create")!;
189
public static readonly MethodInfo ContentMergeNext = typeof(ContentMergeIterator).
GetMethod
("MoveNext")!;
190
public static readonly MethodInfo ContentMergeCurrent = typeof(ContentMergeIterator).
GetMethod
("get_Current")!;
191
public static readonly MethodInfo DescCreate = typeof(DescendantIterator).
GetMethod
("Create")!;
192
public static readonly MethodInfo DescNext = typeof(DescendantIterator).
GetMethod
("MoveNext")!;
193
public static readonly MethodInfo DescCurrent = typeof(DescendantIterator).
GetMethod
("get_Current")!;
194
public static readonly MethodInfo DescMergeCreate = typeof(DescendantMergeIterator).
GetMethod
("Create")!;
195
public static readonly MethodInfo DescMergeNext = typeof(DescendantMergeIterator).
GetMethod
("MoveNext")!;
196
public static readonly MethodInfo DescMergeCurrent = typeof(DescendantMergeIterator).
GetMethod
("get_Current")!;
197
public static readonly MethodInfo DiffCreate = typeof(DifferenceIterator).
GetMethod
("Create")!;
198
public static readonly MethodInfo DiffNext = typeof(DifferenceIterator).
GetMethod
("MoveNext")!;
199
public static readonly MethodInfo DiffCurrent = typeof(DifferenceIterator).
GetMethod
("get_Current")!;
200
public static readonly MethodInfo DodMergeCreate = typeof(DodSequenceMerge).
GetMethod
("Create")!;
201
public static readonly MethodInfo DodMergeAdd = typeof(DodSequenceMerge).
GetMethod
("AddSequence")!;
202
public static readonly MethodInfo DodMergeSeq = typeof(DodSequenceMerge).
GetMethod
("MergeSequences")!;
203
public static readonly MethodInfo ElemContentCreate = typeof(ElementContentIterator).
GetMethod
("Create")!;
204
public static readonly MethodInfo ElemContentNext = typeof(ElementContentIterator).
GetMethod
("MoveNext")!;
205
public static readonly MethodInfo ElemContentCurrent = typeof(ElementContentIterator).
GetMethod
("get_Current")!;
206
public static readonly MethodInfo FollSibCreate = typeof(FollowingSiblingIterator).
GetMethod
("Create")!;
207
public static readonly MethodInfo FollSibNext = typeof(FollowingSiblingIterator).
GetMethod
("MoveNext")!;
208
public static readonly MethodInfo FollSibCurrent = typeof(FollowingSiblingIterator).
GetMethod
("get_Current")!;
209
public static readonly MethodInfo FollSibMergeCreate = typeof(FollowingSiblingMergeIterator).
GetMethod
("Create")!;
210
public static readonly MethodInfo FollSibMergeNext = typeof(FollowingSiblingMergeIterator).
GetMethod
("MoveNext")!;
211
public static readonly MethodInfo FollSibMergeCurrent = typeof(FollowingSiblingMergeIterator).
GetMethod
("get_Current")!;
212
public static readonly MethodInfo IdCreate = typeof(IdIterator).
GetMethod
("Create")!;
213
public static readonly MethodInfo IdNext = typeof(IdIterator).
GetMethod
("MoveNext")!;
214
public static readonly MethodInfo IdCurrent = typeof(IdIterator).
GetMethod
("get_Current")!;
215
public static readonly MethodInfo InterCreate = typeof(IntersectIterator).
GetMethod
("Create")!;
216
public static readonly MethodInfo InterNext = typeof(IntersectIterator).
GetMethod
("MoveNext")!;
217
public static readonly MethodInfo InterCurrent = typeof(IntersectIterator).
GetMethod
("get_Current")!;
218
public static readonly MethodInfo KindContentCreate = typeof(NodeKindContentIterator).
GetMethod
("Create")!;
219
public static readonly MethodInfo KindContentNext = typeof(NodeKindContentIterator).
GetMethod
("MoveNext")!;
220
public static readonly MethodInfo KindContentCurrent = typeof(NodeKindContentIterator).
GetMethod
("get_Current")!;
221
public static readonly MethodInfo NmspCreate = typeof(NamespaceIterator).
GetMethod
("Create")!;
222
public static readonly MethodInfo NmspNext = typeof(NamespaceIterator).
GetMethod
("MoveNext")!;
223
public static readonly MethodInfo NmspCurrent = typeof(NamespaceIterator).
GetMethod
("get_Current")!;
224
public static readonly MethodInfo NodeRangeCreate = typeof(NodeRangeIterator).
GetMethod
("Create")!;
225
public static readonly MethodInfo NodeRangeNext = typeof(NodeRangeIterator).
GetMethod
("MoveNext")!;
226
public static readonly MethodInfo NodeRangeCurrent = typeof(NodeRangeIterator).
GetMethod
("get_Current")!;
227
public static readonly MethodInfo ParentCreate = typeof(ParentIterator).
GetMethod
("Create")!;
228
public static readonly MethodInfo ParentNext = typeof(ParentIterator).
GetMethod
("MoveNext")!;
229
public static readonly MethodInfo ParentCurrent = typeof(ParentIterator).
GetMethod
("get_Current")!;
230
public static readonly MethodInfo PrecCreate = typeof(PrecedingIterator).
GetMethod
("Create")!;
231
public static readonly MethodInfo PrecNext = typeof(PrecedingIterator).
GetMethod
("MoveNext")!;
232
public static readonly MethodInfo PrecCurrent = typeof(PrecedingIterator).
GetMethod
("get_Current")!;
233
public static readonly MethodInfo PreSibCreate = typeof(PrecedingSiblingIterator).
GetMethod
("Create")!;
234
public static readonly MethodInfo PreSibNext = typeof(PrecedingSiblingIterator).
GetMethod
("MoveNext")!;
235
public static readonly MethodInfo PreSibCurrent = typeof(PrecedingSiblingIterator).
GetMethod
("get_Current")!;
236
public static readonly MethodInfo PreSibDOCreate = typeof(PrecedingSiblingDocOrderIterator).
GetMethod
("Create")!;
237
public static readonly MethodInfo PreSibDONext = typeof(PrecedingSiblingDocOrderIterator).
GetMethod
("MoveNext")!;
238
public static readonly MethodInfo PreSibDOCurrent = typeof(PrecedingSiblingDocOrderIterator).
GetMethod
("get_Current")!;
239
public static readonly MethodInfo SortKeyCreate = typeof(XmlSortKeyAccumulator).
GetMethod
("Create")!;
240
public static readonly MethodInfo SortKeyDateTime = typeof(XmlSortKeyAccumulator).
GetMethod
("AddDateTimeSortKey")!;
241
public static readonly MethodInfo SortKeyDecimal = typeof(XmlSortKeyAccumulator).
GetMethod
("AddDecimalSortKey")!;
242
public static readonly MethodInfo SortKeyDouble = typeof(XmlSortKeyAccumulator).
GetMethod
("AddDoubleSortKey")!;
243
public static readonly MethodInfo SortKeyEmpty = typeof(XmlSortKeyAccumulator).
GetMethod
("AddEmptySortKey")!;
244
public static readonly MethodInfo SortKeyFinish = typeof(XmlSortKeyAccumulator).
GetMethod
("FinishSortKeys")!;
245
public static readonly MethodInfo SortKeyInt = typeof(XmlSortKeyAccumulator).
GetMethod
("AddIntSortKey")!;
246
public static readonly MethodInfo SortKeyInteger = typeof(XmlSortKeyAccumulator).
GetMethod
("AddIntegerSortKey")!;
247
public static readonly MethodInfo SortKeyKeys = typeof(XmlSortKeyAccumulator).
GetMethod
("get_Keys")!;
248
public static readonly MethodInfo SortKeyString = typeof(XmlSortKeyAccumulator).
GetMethod
("AddStringSortKey")!;
249
public static readonly MethodInfo UnionCreate = typeof(UnionIterator).
GetMethod
("Create")!;
250
public static readonly MethodInfo UnionNext = typeof(UnionIterator).
GetMethod
("MoveNext")!;
251
public static readonly MethodInfo UnionCurrent = typeof(UnionIterator).
GetMethod
("get_Current")!;
252
public static readonly MethodInfo XPFollCreate = typeof(XPathFollowingIterator).
GetMethod
("Create")!;
253
public static readonly MethodInfo XPFollNext = typeof(XPathFollowingIterator).
GetMethod
("MoveNext")!;
254
public static readonly MethodInfo XPFollCurrent = typeof(XPathFollowingIterator).
GetMethod
("get_Current")!;
255
public static readonly MethodInfo XPFollMergeCreate = typeof(XPathFollowingMergeIterator).
GetMethod
("Create")!;
256
public static readonly MethodInfo XPFollMergeNext = typeof(XPathFollowingMergeIterator).
GetMethod
("MoveNext")!;
257
public static readonly MethodInfo XPFollMergeCurrent = typeof(XPathFollowingMergeIterator).
GetMethod
("get_Current")!;
258
public static readonly MethodInfo XPPrecCreate = typeof(XPathPrecedingIterator).
GetMethod
("Create")!;
259
public static readonly MethodInfo XPPrecNext = typeof(XPathPrecedingIterator).
GetMethod
("MoveNext")!;
260
public static readonly MethodInfo XPPrecCurrent = typeof(XPathPrecedingIterator).
GetMethod
("get_Current")!;
261
public static readonly MethodInfo XPPrecDOCreate = typeof(XPathPrecedingDocOrderIterator).
GetMethod
("Create")!;
262
public static readonly MethodInfo XPPrecDONext = typeof(XPathPrecedingDocOrderIterator).
GetMethod
("MoveNext")!;
263
public static readonly MethodInfo XPPrecDOCurrent = typeof(XPathPrecedingDocOrderIterator).
GetMethod
("get_Current")!;
264
public static readonly MethodInfo XPPrecMergeCreate = typeof(XPathPrecedingMergeIterator).
GetMethod
("Create")!;
265
public static readonly MethodInfo XPPrecMergeNext = typeof(XPathPrecedingMergeIterator).
GetMethod
("MoveNext")!;
266
public static readonly MethodInfo XPPrecMergeCurrent = typeof(XPathPrecedingMergeIterator).
GetMethod
("get_Current")!;
269
public static readonly MethodInfo AddNewIndex = typeof(XmlQueryRuntime).
GetMethod
("AddNewIndex")!;
271
public static readonly MethodInfo ChangeTypeXsltResult = typeof(XmlQueryRuntime).
GetMethod
("ChangeTypeXsltResult")!;
272
public static readonly MethodInfo CompPos = typeof(XmlQueryRuntime).
GetMethod
("ComparePosition")!;
273
public static readonly MethodInfo Context = typeof(XmlQueryRuntime).
GetMethod
("get_ExternalContext")!;
274
public static readonly MethodInfo CreateCollation = typeof(XmlQueryRuntime).
GetMethod
("CreateCollation")!;
275
public static readonly MethodInfo DocOrder = typeof(XmlQueryRuntime).
GetMethod
("DocOrderDistinct")!;
276
public static readonly MethodInfo EndRtfConstr = typeof(XmlQueryRuntime).
GetMethod
("EndRtfConstruction")!;
277
public static readonly MethodInfo EndSeqConstr = typeof(XmlQueryRuntime).
GetMethod
("EndSequenceConstruction")!;
278
public static readonly MethodInfo FindIndex = typeof(XmlQueryRuntime).
GetMethod
("FindIndex")!;
279
public static readonly MethodInfo GenId = typeof(XmlQueryRuntime).
GetMethod
("GenerateId")!;
280
public static readonly MethodInfo GetAtomizedName = typeof(XmlQueryRuntime).
GetMethod
("GetAtomizedName")!;
281
public static readonly MethodInfo GetCollation = typeof(XmlQueryRuntime).
GetMethod
("GetCollation")!;
282
public static readonly MethodInfo GetEarly = typeof(XmlQueryRuntime).
GetMethod
("GetEarlyBoundObject")!;
283
public static readonly MethodInfo GetNameFilter = typeof(XmlQueryRuntime).
GetMethod
("GetNameFilter")!;
284
public static readonly MethodInfo GetOutput = typeof(XmlQueryRuntime).
GetMethod
("get_Output")!;
285
public static readonly MethodInfo GetGlobalValue = typeof(XmlQueryRuntime).
GetMethod
("GetGlobalValue")!;
286
public static readonly MethodInfo GetTypeFilter = typeof(XmlQueryRuntime).
GetMethod
("GetTypeFilter")!;
287
public static readonly MethodInfo GlobalComputed = typeof(XmlQueryRuntime).
GetMethod
("IsGlobalComputed")!;
292
public static readonly MethodInfo RtfConstr = typeof(XmlQueryRuntime).
GetMethod
("TextRtfConstruction")!;
293
public static readonly MethodInfo SendMessage = typeof(XmlQueryRuntime).
GetMethod
("SendMessage")!;
296
public static readonly MethodInfo SetGlobalValue = typeof(XmlQueryRuntime).
GetMethod
("SetGlobalValue")!;
297
public static readonly MethodInfo StartRtfConstr = typeof(XmlQueryRuntime).
GetMethod
("StartRtfConstruction")!;
298
public static readonly MethodInfo StartSeqConstr = typeof(XmlQueryRuntime).
GetMethod
("StartSequenceConstruction")!;
301
public static readonly MethodInfo ThrowException = typeof(XmlQueryRuntime).
GetMethod
("ThrowException")!;
302
public static readonly MethodInfo XsltLib = typeof(XmlQueryRuntime).
GetMethod
("get_XsltFunctions")!;
305
public static readonly MethodInfo GetDataSource = typeof(XmlQueryContext).
GetMethod
("GetDataSource")!;
306
public static readonly MethodInfo GetDefaultDataSource = typeof(XmlQueryContext).
GetMethod
("get_DefaultDataSource")!;
307
public static readonly MethodInfo GetParam = typeof(XmlQueryContext).
GetMethod
("GetParameter")!;
312
private static MethodInfo GetInvokeXsltLateBoundFunction() => typeof(XmlQueryContext).
GetMethod
("InvokeXsltLateBoundFunction")!;
315
public static readonly MethodInfo IndexAdd = typeof(XmlILIndex).
GetMethod
("Add")!;
316
public static readonly MethodInfo IndexLookup = typeof(XmlILIndex).
GetMethod
("Lookup")!;
319
public static readonly MethodInfo ItemIsNode = typeof(XPathItem).
GetMethod
("get_IsNode")!;
320
public static readonly MethodInfo Value = typeof(XPathItem).
GetMethod
("get_Value")!;
324
public static readonly MethodInfo NavClone = typeof(XPathNavigator).
GetMethod
("Clone")!;
325
public static readonly MethodInfo NavLocalName = typeof(XPathNavigator).
GetMethod
("get_LocalName")!;
327
public static readonly MethodInfo NavMoveId = typeof(XPathNavigator).
GetMethod
("MoveToId")!;
328
public static readonly MethodInfo NavMoveParent = typeof(XPathNavigator).
GetMethod
("MoveToParent")!;
329
public static readonly MethodInfo NavMoveRoot = typeof(XPathNavigator).
GetMethod
("MoveToRoot")!;
330
public static readonly MethodInfo NavMoveTo = typeof(XPathNavigator).
GetMethod
("MoveTo")!;
331
public static readonly MethodInfo NavNmsp = typeof(XPathNavigator).
GetMethod
("get_NamespaceURI")!;
332
public static readonly MethodInfo NavPrefix = typeof(XPathNavigator).
GetMethod
("get_Prefix")!;
333
public static readonly MethodInfo NavSamePos = typeof(XPathNavigator).
GetMethod
("IsSamePosition")!;
334
public static readonly MethodInfo NavType = typeof(XPathNavigator).
GetMethod
("get_NodeType")!;
339
public static readonly MethodInfo EndElemStackName = typeof(XmlQueryOutput).
GetMethod
("WriteEndElement")!;
342
public static readonly MethodInfo EndAttr = typeof(XmlQueryOutput).
GetMethod
("WriteEndAttribute")!;
343
public static readonly MethodInfo Text = typeof(XmlQueryOutput).
GetMethod
("WriteString")!;
346
public static readonly MethodInfo StartTree = typeof(XmlQueryOutput).
GetMethod
("StartTree")!;
347
public static readonly MethodInfo EndTree = typeof(XmlQueryOutput).
GetMethod
("EndTree")!;
351
public static readonly MethodInfo StartContentUn = typeof(XmlQueryOutput).
GetMethod
("StartElementContentUnchecked")!;
356
public static readonly MethodInfo EndAttrUn = typeof(XmlQueryOutput).
GetMethod
("WriteEndAttributeUnchecked")!;
357
public static readonly MethodInfo NamespaceDeclUn = typeof(XmlQueryOutput).
GetMethod
("WriteNamespaceDeclarationUnchecked")!;
358
public static readonly MethodInfo TextUn = typeof(XmlQueryOutput).
GetMethod
("WriteStringUnchecked")!;
359
public static readonly MethodInfo NoEntTextUn = typeof(XmlQueryOutput).
GetMethod
("WriteRawUnchecked")!;
361
public static readonly MethodInfo StartRoot = typeof(XmlQueryOutput).
GetMethod
("WriteStartRoot")!;
362
public static readonly MethodInfo EndRoot = typeof(XmlQueryOutput).
GetMethod
("WriteEndRoot")!;
371
public static readonly MethodInfo NamespaceDecl = typeof(XmlQueryOutput).
GetMethod
("WriteNamespaceDeclaration")!;
372
public static readonly MethodInfo StartComment = typeof(XmlQueryOutput).
GetMethod
("WriteStartComment")!;
373
public static readonly MethodInfo CommentText = typeof(XmlQueryOutput).
GetMethod
("WriteCommentString")!;
374
public static readonly MethodInfo EndComment = typeof(XmlQueryOutput).
GetMethod
("WriteEndComment")!;
375
public static readonly MethodInfo StartPI = typeof(XmlQueryOutput).
GetMethod
("WriteStartProcessingInstruction")!;
376
public static readonly MethodInfo PIText = typeof(XmlQueryOutput).
GetMethod
("WriteProcessingInstructionString")!;
377
public static readonly MethodInfo EndPI = typeof(XmlQueryOutput).
GetMethod
("WriteEndProcessingInstruction")!;
378
public static readonly MethodInfo WriteItem = typeof(XmlQueryOutput).
GetMethod
("WriteItem")!;
379
public static readonly MethodInfo CopyOf = typeof(XmlQueryOutput).
GetMethod
("XsltCopyOf")!;
380
public static readonly MethodInfo StartCopy = typeof(XmlQueryOutput).
GetMethod
("StartCopy")!;
381
public static readonly MethodInfo EndCopy = typeof(XmlQueryOutput).
GetMethod
("EndCopy")!;
384
public static readonly MethodInfo DecAdd = typeof(decimal).
GetMethod
("Add")!;
387
public static readonly MethodInfo DecSub = typeof(decimal).
GetMethod
("Subtract")!;
388
public static readonly MethodInfo DecMul = typeof(decimal).
GetMethod
("Multiply")!;
389
public static readonly MethodInfo DecDiv = typeof(decimal).
GetMethod
("Divide")!;
390
public static readonly MethodInfo DecRem = typeof(decimal).
GetMethod
("Remainder")!;
391
public static readonly MethodInfo DecNeg = typeof(decimal).
GetMethod
("Negate")!;
392
public static readonly MethodInfo QNameEq = typeof(XmlQualifiedName).
GetMethod
("Equals")!;
398
public static readonly MethodInfo StrLen = typeof(string).
GetMethod
("get_Length")!;
425
public static readonly MethodInfo StrCatCat = typeof(StringConcat).
GetMethod
("Concat")!;
426
public static readonly MethodInfo StrCatClear = typeof(StringConcat).
GetMethod
("Clear")!;
427
public static readonly MethodInfo StrCatResult = typeof(StringConcat).
GetMethod
("GetResult")!;
428
public static readonly MethodInfo StrCatDelim = typeof(StringConcat).
GetMethod
("set_Delimiter")!;
431
public static readonly MethodInfo NavsToItems = typeof(XmlILStorageConverter).
GetMethod
("NavigatorsToItems")!;
432
public static readonly MethodInfo ItemsToNavs = typeof(XmlILStorageConverter).
GetMethod
("ItemsToNavigators")!;
435
public static readonly MethodInfo SetDod = typeof(XmlQueryNodeSequence).
GetMethod
("set_IsDocOrderDistinct")!;
438
public static readonly MethodInfo GetTypeFromHandle = typeof(Type).
GetMethod
("GetTypeFromHandle")!;
439
public static readonly MethodInfo InitializeArray = typeof(System.Runtime.CompilerServices.RuntimeHelpers).
GetMethod
("InitializeArray")!;
System\Xml\Xsl\Runtime\XsltLibrary.cs (32)
20
public static readonly MethodInfo FormatMessage = typeof(XsltLibrary).
GetMethod
("FormatMessage")!;
26
public static readonly MethodInfo EqualityOperator = typeof(XsltLibrary).
GetMethod
("EqualityOperator")!;
27
public static readonly MethodInfo RelationalOperator = typeof(XsltLibrary).
GetMethod
("RelationalOperator")!;
30
public static readonly MethodInfo StartsWith = typeof(XsltFunctions).
GetMethod
("StartsWith")!;
31
public static readonly MethodInfo Contains = typeof(XsltFunctions).
GetMethod
("Contains")!;
32
public static readonly MethodInfo SubstringBefore = typeof(XsltFunctions).
GetMethod
("SubstringBefore")!;
33
public static readonly MethodInfo SubstringAfter = typeof(XsltFunctions).
GetMethod
("SubstringAfter")!;
36
public static readonly MethodInfo NormalizeSpace = typeof(XsltFunctions).
GetMethod
("NormalizeSpace")!;
37
public static readonly MethodInfo Translate = typeof(XsltFunctions).
GetMethod
("Translate")!;
38
public static readonly MethodInfo Lang = typeof(XsltFunctions).
GetMethod
("Lang")!;
41
public static readonly MethodInfo Round = typeof(XsltFunctions).
GetMethod
("Round")!;
44
public static readonly MethodInfo SystemProperty = typeof(XsltFunctions).
GetMethod
("SystemProperty")!;
45
public static readonly MethodInfo BaseUri = typeof(XsltFunctions).
GetMethod
("BaseUri")!;
46
public static readonly MethodInfo OuterXml = typeof(XsltFunctions).
GetMethod
("OuterXml")!;
47
public static readonly MethodInfo OnCurrentNodeChanged = typeof(XmlQueryRuntime).
GetMethod
("OnCurrentNodeChanged")!;
50
public static readonly MethodInfo MSFormatDateTime = typeof(XsltFunctions).
GetMethod
("MSFormatDateTime")!;
51
public static readonly MethodInfo MSStringCompare = typeof(XsltFunctions).
GetMethod
("MSStringCompare")!;
52
public static readonly MethodInfo MSUtc = typeof(XsltFunctions).
GetMethod
("MSUtc")!;
53
public static readonly MethodInfo MSNumber = typeof(XsltFunctions).
GetMethod
("MSNumber")!;
54
public static readonly MethodInfo MSLocalName = typeof(XsltFunctions).
GetMethod
("MSLocalName")!;
55
public static readonly MethodInfo MSNamespaceUri = typeof(XsltFunctions).
GetMethod
("MSNamespaceUri")!;
58
public static readonly MethodInfo EXslObjectType = typeof(XsltFunctions).
GetMethod
("EXslObjectType")!;
61
public static readonly MethodInfo CheckScriptNamespace = typeof(XsltLibrary).
GetMethod
("CheckScriptNamespace")!;
66
private static MethodInfo GetFunctionAvailableMethod() => typeof(XsltLibrary).
GetMethod
("FunctionAvailable")!;
67
public static readonly MethodInfo ElementAvailable = typeof(XsltLibrary).
GetMethod
("ElementAvailable")!;
68
public static readonly MethodInfo RegisterDecimalFormat = typeof(XsltLibrary).
GetMethod
("RegisterDecimalFormat")!;
69
public static readonly MethodInfo RegisterDecimalFormatter = typeof(XsltLibrary).
GetMethod
("RegisterDecimalFormatter")!;
70
public static readonly MethodInfo FormatNumberStatic = typeof(XsltLibrary).
GetMethod
("FormatNumberStatic")!;
71
public static readonly MethodInfo FormatNumberDynamic = typeof(XsltLibrary).
GetMethod
("FormatNumberDynamic")!;
72
public static readonly MethodInfo IsSameNodeSort = typeof(XsltLibrary).
GetMethod
("IsSameNodeSort")!;
73
public static readonly MethodInfo LangToLcid = typeof(XsltLibrary).
GetMethod
("LangToLcid")!;
74
public static readonly MethodInfo NumberFormat = typeof(XsltLibrary).
GetMethod
("NumberFormat")!;
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
224
return type.
GetMethod
(name);
System.Runtime.InteropServices (2)
System\Runtime\InteropServices\ComAwareEventInfo.cs (1)
119
MethodInfo methodInfo = sourceInterface.
GetMethod
(eventInfo.Name)!;
System\Runtime\InteropServices\Marshalling\ComImportInteropInterfaceDetailsStrategy.cs (1)
188
internal static readonly MethodInfo GetRuntimeCallableWrapperMethod = typeof(IComImportAdapter).
GetMethod
(nameof(GetRuntimeCallableWrapper))!;
System.Runtime.InteropServices.JavaScript (2)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (2)
55
s_taskGetResultMethodInfo = typeof(Task<>).
GetMethod
(TaskGetResultName);
57
MethodInfo? getter = taskType.
GetMethod
(TaskGetResultName);
System.ServiceModel.Primitives (1)
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
65
if (declaringType == typeof(object) && method == typeof(object).
GetMethod
("GetType"))
System.ServiceModel.Primitives.Tests (8)
Channels\TransactionFlowBindingElementTest.cs (2)
525
s_formatterType.
GetMethod
("WriteTransaction").Invoke(formatter, new[] { transaction, message });
537
s_formatterType.
GetMethod
("ReadTransaction").Invoke(formatter, new[] { message });
Description\ContractDescriptionTest.cs (6)
217
Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).
GetMethod
(nameof(IDescriptionTestsServiceBeginEndGenerated.BeginEcho)), operation.BeginMethod);
218
Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).
GetMethod
(nameof(IDescriptionTestsServiceBeginEndGenerated.EndEcho)), operation.EndMethod);
222
Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).
GetMethod
(nameof(IDescriptionTestsServiceBeginEndGenerated.BeginMessageRequestReply)), operation.BeginMethod);
223
Assert.Equal(typeof(IDescriptionTestsServiceBeginEndGenerated).
GetMethod
(nameof(IDescriptionTestsServiceBeginEndGenerated.EndMessageRequestReply)), operation.EndMethod);
234
Assert.Equal(typeof(IDescriptionTestsService).
GetMethod
(nameof(IDescriptionTestsService.Echo)), operation.SyncMethod);
238
Assert.Equal(typeof(IDescriptionTestsService).
GetMethod
(nameof(IDescriptionTestsService.MessageRequestReply)), operation.SyncMethod);
System.Text.Json (4)
System\Text\Json\Serialization\Metadata\ReflectionEmitMemberAccessor.cs (2)
342
MethodInfo realMethod = (collectionType.
GetMethod
("Push") ?? collectionType.
GetMethod
("Enqueue"))!;
System\Text\Json\Serialization\Metadata\ReflectionMemberAccessor.cs (2)
157
MethodInfo addMethod = (collectionType.
GetMethod
("Push") ?? collectionType.
GetMethod
("Enqueue"))!;
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\RegexCompiler.cs (2)
68
private static MethodInfo SpanGetLengthMethod => field ??= typeof(ReadOnlySpan<char>).
GetMethod
("get_Length")!;
104
private static MethodInfo ArrayResizeMethod => field ??= typeof(Array).
GetMethod
("Resize")!.MakeGenericMethod(typeof(int));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
726
MethodInfo? delegateInvoke = type.
GetMethod
("Invoke");
System.Xaml (4)
System\Xaml\Schema\CollectionReflector.cs (4)
116
addMethod = genericICollection.
GetMethod
(KnownStrings.Add);
411
s_getEnumeratorMethod = typeof(IEnumerable).
GetMethod
(KnownStrings.GetEnumerator);
424
s_listAddMethod = typeof(IList).
GetMethod
(KnownStrings.Add);
437
s_dictionaryAddMethod = typeof(IDictionary).
GetMethod
(KnownStrings.Add);