28 references to GetDeclaredMethod
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
104return type.GetTypeInfo().GetDeclaredMethod(name);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
291TrySetResultMethod = GenericType.GetTypeInfo().GetDeclaredMethod("TrySetResult");
GenerateDocumentationAndConfigFiles (1)
CodeFixerExtensions.cs (1)
78MethodInfo? moveNextMethod = stateMachineAttr?.StateMachineType.GetTypeInfo().GetDeclaredMethod("MoveNext");
Infrastructure.Common (1)
xunit\ConditionAttribute.cs (1)
112MethodInfo mi = ti.GetDeclaredMethod(name);
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
DefaultHtmlGenerator.cs (1)
28typeof(DefaultHtmlGenerator).GetTypeInfo().GetDeclaredMethod(nameof(ConvertEnumFromString));
TryGetValueProvider.cs (1)
21typeof(TryGetValueProvider).GetTypeInfo().GetDeclaredMethod(nameof(StrongTryGetValueImpl));
Microsoft.CodeAnalysis (3)
CodeGen\BasicBlock.cs (1)
648var method = visType.GetTypeInfo().GetDeclaredMethod("BasicBlockToString");
CodeGen\ILBuilder.cs (1)
1283var method = visType.GetTypeInfo().GetDeclaredMethod("ILBuilderToString");
TreeDumper.cs (1)
199var result = ti?.GetDeclaredMethod("get_IsDefault")?.Invoke(o, Array.Empty<object>());
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
276var m = c.DeclaringType.GetTypeInfo().GetDeclaredMethod("M");
Microsoft.CodeAnalysis.Scripting (1)
ScriptBuilder.cs (1)
192return entryPointType.GetDeclaredMethod(entryPointMethodName);
Microsoft.DotNet.RemoteExecutor (1)
Program.cs (1)
50mi = t.GetTypeInfo().GetDeclaredMethod(methodName);
Microsoft.DotNet.XUnitExtensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
177MethodInfo mi = ti.GetDeclaredMethod(name);
Microsoft.DotNet.XUnitV3Extensions (1)
src\Microsoft.DotNet.XUnitExtensions.Shared\Discoverers\ConditionalTestDiscoverer.cs (1)
177MethodInfo mi = ti.GetDeclaredMethod(name);
Microsoft.Maui.Controls (2)
BindingExpression.cs (2)
339 part.LastGetter = sourceType.GetDeclaredMethod("Get"); 340 part.LastSetter = sourceType.GetDeclaredMethod("Set");
Microsoft.VisualStudio.LanguageServices (2)
Interactive\VsInteractiveWindowPackage.cs (2)
72var handlerSetter = type.GetDeclaredMethod("set_Handler"); 73var nonFatalHandlerSetter = type.GetDeclaredMethod("set_NonFatalHandler");
System.Composition.Hosting (6)
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryExportDescriptorProvider.cs (1)
14private static readonly MethodInfo s_getExportFactoryDefinitionsMethod = typeof(ExportFactoryExportDescriptorProvider).GetTypeInfo().GetDeclaredMethod("GetExportFactoryDescriptors");
System\Composition\Hosting\Providers\ExportFactory\ExportFactoryWithMetadataExportDescriptorProvider.cs (1)
16typeof(ExportFactoryWithMetadataExportDescriptorProvider).GetTypeInfo().GetDeclaredMethod("GetExportFactoryDescriptors");
System\Composition\Hosting\Providers\ImportMany\ImportManyExportDescriptorProvider.cs (1)
14private static readonly MethodInfo s_getImportManyDefinitionMethod = typeof(ImportManyExportDescriptorProvider).GetTypeInfo().GetDeclaredMethod("GetImportManyDescriptor");
System\Composition\Hosting\Providers\Lazy\LazyExportDescriptorProvider.cs (1)
15.GetTypeInfo().GetDeclaredMethod("GetLazyDefinitions");
System\Composition\Hosting\Providers\Lazy\LazyWithMetadataExportDescriptorProvider.cs (1)
15private static readonly MethodInfo s_getLazyDefinitionsMethod = typeof(LazyWithMetadataExportDescriptorProvider).GetTypeInfo().GetDeclaredMethod("GetLazyDefinitions");
System\Composition\Hosting\Providers\Metadata\MetadataViewProvider.cs (1)
15private static readonly MethodInfo s_getMetadataValueMethod = typeof(MetadataViewProvider).GetTypeInfo().GetDeclaredMethod(nameof(GetMetadataValue));
System.Composition.TypedParts (2)
System\Composition\TypedParts\ActivationFeatures\PropertyInjectionFeature.cs (1)
20private static readonly MethodInfo s_activatorInvokeMethod = typeof(CompositeActivator).GetTypeInfo().GetDeclaredMethod("Invoke");
System\Composition\TypedParts\Discovery\DiscoveredPart.cs (1)
37private static readonly MethodInfo s_activatorInvoke = typeof(CompositeActivator).GetTypeInfo().GetDeclaredMethod("Invoke");
System.ServiceModel.Primitives (2)
Extensions\ReflectionExtensions.cs (1)
109return type.GetTypeInfo().GetDeclaredMethod(name);
System\ServiceModel\Channels\ServiceChannelProxy.cs (1)
293TrySetResultMethod = GenericType.GetTypeInfo().GetDeclaredMethod("TrySetResult");