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