Implemented interface member:
method
GetMethod
System.Reflection.IReflect.GetMethod(System.String, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[])
145 references to GetMethod
dotnet-svcutil.xmlserializer (1)
Microsoft\Tools\ServiceModel\SvcUtil\ExportModule.cs (1)
67
MethodInfo GetContract = contractDescription.
GetMethod
("GetContract", BindingFlags.Public| BindingFlags.Static, null, new Type[] { typeof(Type) }, null);
dotnet-svcutil-lib (80)
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (2)
334
MethodInfo ICollection_get_Count = typeof(ICollection).
GetMethod
(
1127
Call(typeof(Type).
GetMethod
("GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(RuntimeTypeHandle) }, null));
FrameworkFork\Microsoft.Xml\Xml\Serialization\SourceInfo.cs (3)
25
return typeof(IList).
GetMethod
(
102
MethodInfo get_Item = varType.
GetMethod
(
221
MethodInfo Nullable_get_Value = nullableType.
GetMethod
(
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (1)
1305
enumerator = type.
GetMethod
("System.Collections.IEnumerable.GetEnumerator", BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic, null, new Type[0], null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (1)
491
MethodInfo getMethod = getMethod = type.
GetMethod
(provider.MethodName, /* BindingFlags.DeclaredOnly | */ BindingFlags.Static | BindingFlags.Public, null, new Type[] { typeof(XmlSchemaSet) }, null);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationILGen.cs (5)
204
MethodInfo Hashtable_set_Item = typeof(Hashtable).
GetMethod
(
334
MethodInfo XmlReader_IsStartElement = typeof(XmlReader).
GetMethod
(
361
MethodInfo writerType_writeMethod = CreatedTypes[writerClass].
GetMethod
(
387
MethodInfo readerType_readMethod = CreatedTypes[readerClass].
GetMethod
(
410
MethodInfo Hashtable_Add = typeof(Hashtable).
GetMethod
(
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationWriterILGen.cs (68)
111
MethodInfo XmlSerializationWriter_WriteXXX = typeof(XmlSerializationWriter).
GetMethod
(
160
MethodInfo XmlConvert_ToString = typeof(XmlConvert).
GetMethod
(
180
MethodInfo FromXXX = typeof(XmlSerializationWriter).
GetMethod
(
265
MethodInfo XmlSerializationWriter_method = typeof(XmlSerializationWriter).
GetMethod
(
282
MethodInfo XmlSerializationWriter_Method = typeof(XmlSerializationWriter).
GetMethod
(
297
MethodInfo XmlSerializationWriter_Method = typeof(XmlSerializationWriter).
GetMethod
(
319
MethodInfo XmlSerializationWriter_WriteEndElement = typeof(XmlSerializationWriter).
GetMethod
(
331
MethodInfo XmlSerializationWriter_WriteEndElement = typeof(XmlSerializationWriter).
GetMethod
(
371
MethodInfo XmlSerializationWriter_WriteStartDocument = typeof(XmlSerializationWriter).
GetMethod
(
381
MethodInfo XmlSerializationWriter_TopLevelElement = typeof(XmlSerializationWriter).
GetMethod
(
568
MethodInfo XmlSerializationWriter_WriteStartDocument = typeof(XmlSerializationWriter).
GetMethod
(
590
MethodInfo XmlSerializationWriter_TopLevelElement = typeof(XmlSerializationWriter).
GetMethod
(
696
MethodInfo XmlSerializationWriter_FromEnum = typeof(XmlSerializationWriter).
GetMethod
(
718
MethodInfo CultureInfo_get_InvariantCulture = typeof(CultureInfo).
GetMethod
(
725
MethodInfo Int64_ToString = typeof(Int64).
GetMethod
(
732
MethodInfo XmlSerializationWriter_CreateInvalidEnumValueException = typeof(XmlSerializationWriter).
GetMethod
(
825
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
832
MethodInfo XmlWriter_WriteStartElement = typeof(XmlWriter).
GetMethod
(
844
MethodInfo XmlSerializationWriter_WriteXsiType = typeof(XmlSerializationWriter).
GetMethod
(
861
MethodInfo XmlWriter_WriteString = typeof(XmlWriter).
GetMethod
(
876
MethodInfo XmlWriter_WriteEndElement = typeof(XmlWriter).
GetMethod
(
901
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
908
MethodInfo XmlWriter_WriteStartElement = typeof(XmlWriter).
GetMethod
(
920
MethodInfo XmlSerializationWriter_WriteXsiType = typeof(XmlSerializationWriter).
GetMethod
(
934
MethodInfo XmlWriter_WriteEndElement = typeof(XmlWriter).
GetMethod
(
982
MethodInfo XmlSerializationWriter_WriteNullTagLiteral = typeof(XmlSerializationWriter).
GetMethod
(
1002
MethodInfo Object_GetType = typeof(object).
GetMethod
(
1023
MethodInfo XmlSerializationWriter_WriteTypedPrimitive = typeof(XmlSerializationWriter).
GetMethod
(
1040
MethodInfo XmlSerializationWriter_CreateUnknownTypeException = typeof(XmlSerializationWriter).
GetMethod
(
1060
MethodInfo XmlSerializationWriter_set_EscapeName = typeof(XmlSerializationWriter).
GetMethod
(
1097
MethodInfo XmlSerializationWriter_WriteStartElement = typeof(XmlSerializationWriter).
GetMethod
(
1109
MethodInfo XmlSerializationWriter_WriteXsiType = typeof(XmlSerializationWriter).
GetMethod
(
1229
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
1236
MethodInfo XmlWriter_WriteStartAttribute = typeof(XmlWriter).
GetMethod
(
1290
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
1297
MethodInfo XmlWriter_WriteString = typeof(XmlWriter).
GetMethod
(
1315
MethodInfo StringBuilder_Append = typeof(StringBuilder).
GetMethod
(
1338
MethodInfo method = methodType.
GetMethod
(
1362
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
1369
MethodInfo XmlWriter_WriteEndAttribute = typeof(XmlWriter).
GetMethod
(
1382
MethodInfo StringBuilder_get_Length = typeof(StringBuilder).
GetMethod
(
1404
MethodInfo Object_ToString = typeof(Object).
GetMethod
(
1414
MethodInfo XmlSerializationWriter_WriteAttribute = typeof(XmlSerializationWriter).
GetMethod
(
1445
MethodInfo XmlSerializationWriter_WriteXmlAttribute = typeof(XmlSerializationWriter).
GetMethod
(
1534
MethodInfo XmlSerializationWriter_CreateInvalidChoiceIdentifierValueException = typeof(XmlSerializationWriter).
GetMethod
(
1567
MethodInfo getEnumeratorMethod = arrayTypeDesc.Type.
GetMethod
(
1584
getEnumeratorMethod = typeIEnumerable.
GetMethod
(
1608
MethodInfo IEnumerator_MoveNext = typeof(IEnumerator).
GetMethod
(
1797
MethodInfo XmlNode_get_Name = typeof(XmlNode).
GetMethod
(
1804
MethodInfo XmlNode_get_NamespaceURI = typeof(XmlNode).
GetMethod
(
1814
MethodInfo String_op_Equality = typeof(string).
GetMethod
(
1839
MethodInfo XmlSerializationWriter_CreateChoiceIdentifierValueException = typeof(XmlSerializationWriter).
GetMethod
(
1868
MethodInfo XmlSerializationWriter_CreateUnknownAnyElementException = typeof(XmlSerializationWriter).
GetMethod
(
1877
MethodInfo XmlNode_get_Name = typeof(XmlNode).
GetMethod
(
1884
MethodInfo XmlNode_get_NamespaceURI = typeof(XmlNode).
GetMethod
(
1933
MethodInfo XmlSerializationWriter_CreateUnknownTypeException = typeof(XmlSerializationWriter).
GetMethod
(
1968
MethodInfo XmlSerializationWriter_WriteValue = typeof(XmlSerializationWriter).
GetMethod
(
1983
MethodInfo WriteTo = source.Type.
GetMethod
(
1990
MethodInfo XmlSerializationWriter_get_Writer = typeof(XmlSerializationWriter).
GetMethod
(
2016
MethodInfo Nullable_get_HasValue = element.Mapping.TypeDesc.Type.
GetMethod
(
2167
MethodInfo XmlSerializationWriter_CreateInvalidAnyTypeException = typeof(XmlSerializationWriter).
GetMethod
(
2190
MethodInfo XmlSerializationWriter_func = typeof(XmlSerializationWriter).
GetMethod
(
2221
MethodInfo String_get_Length = typeof(string).
GetMethod
(
2265
MethodInfo op_Inequality = valueType.
GetMethod
(
2297
MethodInfo XmlSerializationWriter_CreateMismatchChoiceException = typeof(XmlSerializationWriter).
GetMethod
(
2327
MethodInfo XmlSerializationWriter_WriteNamespaceDeclarations = typeof(XmlSerializationWriter).
GetMethod
(
2544
MethodInfo XName_op_Implicit = xName.
GetMethod
(
2569
MethodInfo Activator_CreateInstance = typeof(Activator).
GetMethod
(
illink (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
93
/// <item><see cref="System.Type.
GetMethod
(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
93
/// <item><see cref="System.Type.
GetMethod
(string, System.Reflection.BindingFlags, System.Reflection.Binder, System.Type[], System.Reflection.ParameterModifier[]?)"/></item>
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Internal\Binding\ReflectionServiceInvokerResolver.cs (1)
56
var matchingMethod = currentType.
GetMethod
(
src\Grpc\JsonTranscoding\src\Shared\Server\BindMethodFinder.cs (2)
55
return bindServiceMethod.BindType.
GetMethod
(
80
return declaringType?.
GetMethod
(
Microsoft.AspNetCore.InternalTesting (1)
xunit\AspNetTestAssemblyRunner.cs (1)
50
var staticCreator = fixtureAttribute.FixtureType.
GetMethod
(
Microsoft.AspNetCore.Routing (3)
Matching\ILEmitTrieFactory.cs (3)
689
AsSpan = typeof(MemoryExtensions).
GetMethod
(
714
ReadUnalignedUInt64 = typeof(Unsafe).
GetMethod
(
726
ReadUnalignedUInt16 = typeof(Unsafe).
GetMethod
(
Microsoft.AspNetCore.SignalR.Core (2)
Internal\TypedClientBuilder.cs (2)
132
invokeMethod = typeof(ISingleClientProxy).
GetMethod
(
139
invokeMethod = typeof(IClientProxy).
GetMethod
(
Microsoft.Build (1)
Evaluation\Expander.cs (1)
4278
memberInfo = _receiverType.
GetMethod
(_methodMethodName, bindingFlags, null, types, null);
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (1)
257
MethodInfo apiMethod = memberInfo.
GetMethod
(
Microsoft.Extensions.DependencyInjection (2)
ServiceLookup\ServiceLookupHelpers.cs (2)
33
.
GetMethod
(nameof(Monitor.Enter), BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(object), typeof(bool).MakeByRefType() }, null)!;
35
.
GetMethod
(nameof(Monitor.Exit), BindingFlags.Public | BindingFlags.Static, null, new Type[] { typeof(object) }, null)!;
Microsoft.Maui.Controls (1)
TypeConversionHelper.cs (1)
108
var method = onType.
GetMethod
("op_Implicit", bindingAttr, null, new[] { fromType }, null);
Microsoft.ML.Core (3)
CommandLine\CmdParser.cs (2)
1366
var meth = type.
GetMethod
("Parse", BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.Public, binder: null, new[] { typeof(string) }, null);
1375
var meth = type.
GetMethod
("TryUnparse", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public, binder: null, new[] { typeof(StringBuilder) }, null);
ComponentModel\ComponentCatalog.cs (1)
662
var meth = loaderType.
GetMethod
("Create", BindingFlags.Public | BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy, null, parmTypes ?? Type.EmptyTypes, null);
PresentationCore (2)
System\Windows\CultureInfoConverter.cs (1)
131
MethodInfo method = typeof(CultureInfo).
GetMethod
(
System\Windows\Markup\XmlLanguageConverter.cs (1)
124
MethodInfo method = typeof(XmlLanguage).
GetMethod
(
PresentationFramework (15)
MS\Internal\Data\DefaultValueConverter.cs (3)
206
if (culture != null && (mi = targetType.
GetMethod
("Parse",
215
else if (culture != null && (mi = targetType.
GetMethod
("Parse",
224
else if ((mi = targetType.
GetMethod
("Parse",
System\Windows\Markup\Baml2006\WpfKnownMemberInvoker.cs (2)
56
_shouldSerializeMethod = declaringType.
GetMethod
(methodName, flags, null, args, null);
61
_shouldSerializeMethod = declaringType.
GetMethod
(methodName, flags, null, args, null);
System\Windows\Markup\Baml2006\WpfMemberInvoker.cs (2)
76
_shouldSerializeMethod = declaringType.
GetMethod
(methodName, flags, null, args, null);
81
_shouldSerializeMethod = declaringType.
GetMethod
(methodName, flags, null, args, null);
System\Windows\Markup\Primitives\ElementMarkupObject.cs (8)
216
shouldSerializeMethod = ownerType.
GetMethod
(methodName, BindingFlags.Static |
219
shouldSerializeMethod = ownerType.
GetMethod
(methodName, BindingFlags.Static |
222
shouldSerializeMethod = ownerType.
GetMethod
(methodName, BindingFlags.Static |
225
shouldSerializeMethod = ownerType.
GetMethod
(methodName, BindingFlags.Static |
239
shouldSerializeMethod = instanceType.
GetMethod
(methodName, BindingFlags.Instance | BindingFlags.Static |
242
shouldSerializeMethod = instanceType.
GetMethod
(methodName, BindingFlags.Instance | BindingFlags.Static |
245
shouldSerializeMethod = instanceType.
GetMethod
(methodName, BindingFlags.Instance | BindingFlags.Static |
248
shouldSerializeMethod = instanceType.
GetMethod
(methodName, BindingFlags.Instance | BindingFlags.Static |
System.ComponentModel.TypeConverter (2)
System\ComponentModel\MemberDescriptor.cs (1)
412
result = componentClass.
GetMethod
(name, BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic, null, args, null);
System\ComponentModel\ReflectPropertyDescriptor.cs (1)
814
memberInfo = currentReflectType.
GetMethod
("Get" + Name, bindingFlags, binder: null, new Type[] { _receiverType! }, modifiers: null);
System.Linq.Expressions (1)
System\Dynamic\Utils\TypeExtensions.cs (1)
25
MethodInfo? method = type.
GetMethod
(name, BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.DeclaredOnly, null, types, null);
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\EventSource.cs (1)
3930
MethodInfo? getInstanceMethod = metricsEventSourceType.
GetMethod
("GetInstance", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static, null, Type.EmptyTypes, null);
src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
172
MethodInfo? initializeMethod = type.
GetMethod
(InitializeMethodName,
src\libraries\System.Private.CoreLib\src\System\Type.cs (2)
321
public MethodInfo? GetMethod(string name, BindingFlags bindingAttr, Type[] types) =>
GetMethod
(name, bindingAttr, binder: null, types, modifiers: null);
327
public MethodInfo? GetMethod(string name, Type[] types, ParameterModifier[]? modifiers) =>
GetMethod
(name, DefaultLookup, null, types, modifiers);
src\System\Diagnostics\StackFrameHelper.cs (1)
117
MethodInfo? symbolsMethodInfo = symbolsType.
GetMethod
("GetSourceLineInfo", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Instance, null, parameterTypes, null);
System.Private.Windows.Core.TestUtilities (2)
TestAccessor.cs (2)
72
MethodInfo? methodInfo = s_type.
GetMethod
(
114
methodInfo = type?.
GetMethod
(
System.Private.Xml (1)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (1)
800
MethodInfo XmlSerializationReader_CollapseWhitespace = typeof(XmlSerializationReader).
GetMethod
(
System.ServiceModel.Primitives.Tests (1)
Security\SecurityUtilsTest.cs (1)
20
MethodInfo method = t.
GetMethod
("FixNetworkCredential", BindingFlags.NonPublic | BindingFlags.Static,
System.Windows.Forms (1)
System\Windows\Forms\Accessibility\AccessibleObject.cs (1)
2906
=> typeof(IAccessible).
GetMethod
(name, bindingAttr, binder, types, modifiers);
System.Windows.Forms.Design (2)
System\ComponentModel\Design\DesignerHost.cs (1)
1208
typeof(IDesignerHost).
GetMethod
(name, bindingAttr, binder, types, modifiers);
System\Windows\Forms\Design\ControlCodeDomSerializer.cs (1)
351
if (TypeDescriptor.GetReflectionType(control).
GetMethod
(
System.Xaml (6)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
120
factory = type.
GetMethod
(methodName, flags, null, Type.EmptyTypes, null);
System\Xaml\Runtime\DynamicMethodRuntime.cs (3)
281
MethodInfo helper = targetType.
GetMethod
(KnownStrings.CreateDelegateHelper,
317
MethodInfo method = typeof(Delegate).
GetMethod
(KnownStrings.CreateDelegate,
609
s_GetTypeFromHandleMethod = typeof(Type).
GetMethod
(
System\Xaml\Schema\CollectionReflector.cs (1)
356
MethodInfo result = type.
GetMethod
(name, GetBindingFlags(type), null, argTypes, null);
System\Xaml\Schema\XamlMemberInvoker.cs (1)
129
_shouldSerializeMethod.Value = declaringType.
GetMethod
(methodName, flags, null, args, null);
System.Xaml.Tests (6)
System\Xaml\XamlTypeTests.cs (6)
818
new XamlMember("InternalThenInternal", typeof(DuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.GetInternalThenInternal), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new XamlSchemaContext()),
819
new XamlMember("InternalThenInternalEvent", typeof(DuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.AddInternalThenInternalEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new XamlSchemaContext()),
835
new XamlMember("InternalThenInternal", typeof(PrivateDuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.GetInternalThenInternal), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new XamlSchemaContext()),
836
new XamlMember("InternalThenInternalEvent", typeof(PrivateDuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.AddInternalThenInternalEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new XamlSchemaContext()),
837
new XamlMember("InternalThenPublic", typeof(PrivateDuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.GetInternalThenPublic), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(string) }, null), null, new XamlSchemaContext()),
838
new XamlMember("InternalThenPublicEvent", typeof(PrivateDuplicateDataClass).
GetMethod
(nameof(DuplicateDataClass.AddInternalThenPublicEventHandler), BindingFlags.Static | BindingFlags.NonPublic, null, new Type[] { typeof(object), typeof(EventHandler) }, null), new XamlSchemaContext()),
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
1094
MethodInfo methodInfo = typeof(SWF.Control).
GetMethod
("OnParentRightToLeftChanged", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(EventArgs) }, null);