212 references to GetMethod
dotnet-svcutil-lib (12)
FrameworkFork\Microsoft.Xml\External\Extensions.cs (1)
21return type.GetMethod(name, types);
FrameworkFork\Microsoft.Xml\Xml\Serialization\CodeGenerator.cs (1)
701Call(typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }));
FrameworkFork\Microsoft.Xml\Xml\Serialization\Models.cs (1)
282_checkShouldPersistMethodInfo = memberInfo.DeclaringType.GetMethod("ShouldSerialize" + memberInfo.Name, new Type[0]);
FrameworkFork\Microsoft.Xml\Xml\Serialization\Types.cs (4)
1281MethodInfo enumerator = type.GetMethod("GetEnumerator", new Type[0]); 1321MethodInfo addMethod = type.GetMethod("Add", new Type[] { currentType }); 1326addMethod = type.GetMethod("Add", new Type[] { currentType }); 1383MethodInfo addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (1)
402MethodInfo format = formatter.GetMethod("To" + pm.TypeDesc.FormatterName, new Type[] { typeof(string) });
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemaExporter.cs (1)
967System.Reflection.MethodInfo format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.Type });
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (3)
85s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 102s_objectToString = typeof(object).GetMethod("ToString", Array.Empty<Type>()); 117s_stringFormat = typeof(string).GetMethod("Format", new Type[] { typeof(string), typeof(object[]) });
GetDocument.Insider (2)
Commands\GetDocumentCommandWorker.cs (2)
219var generateWithVersionMethod = serviceType.GetMethod( 431var method = type.GetMethod(methodName, parameterTypes);
illink (1)
ILLink.RoslynAnalyzer (1)
src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
90 /// <item><see cref="System.Type.GetMethod(string, System.Type[])"/></item>
Microsoft.AspNetCore.InternalTesting.Tests (1)
TestableAssembly.cs (1)
86var trueInfo = typeof(Assert).GetMethod("True", new[] { typeof(bool) });
Microsoft.AspNetCore.Mvc.Core.Test (1)
ModelBinding\ParameterBinderTest.cs (1)
139var method = typeof(Person).GetMethod(nameof(Person.Equals), new[] { typeof(Person) });
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
DataAnnotationsModelValidatorTest.cs (1)
40var method = typeof(ModelValidationResultComparer).GetMethod(
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Internal\Analyzer\CSharp\CSharpCopilotCodeAnalysisService.ReflectionWrapper.cs (1)
90if (_analyzerType.GetMethod(methodName, types) is MethodInfo methodInfo)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
HelperFactory.cs (2)
209private static MethodInfo HandlebarsExtensionsWriteSafeString = typeof(HandlebarsExtensions).GetMethod( 227private static MethodInfo ConvertChangeType = typeof(Convert).GetMethod(
Microsoft.Maui (1)
VisualDiagnostics\BootstrapHelper.cs (1)
35 MethodInfo loadFrom = typeof(Assembly).GetMethod("LoadFrom", new Type[] { typeof(string) });
Microsoft.Maui.Controls (1)
BindingExpression.cs (1)
409 MethodInfo setValueMethod = typeof(IElementController).GetMethod(nameof(IElementController.SetValueFromRenderer), new[] { typeof(BindableProperty), typeof(object) });
Microsoft.Maui.Controls.Compatibility (1)
src\Core\src\VisualDiagnostics\BootstrapHelper.cs (1)
35 MethodInfo loadFrom = typeof(Assembly).GetMethod("LoadFrom", new Type[] { typeof(string) });
Microsoft.ML.AutoML.SourceGenerator (5)
Template\EstimatorType.cs (1)
307System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SearchSpace.cs (1)
324System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimator.cs (1)
326System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimator_T_.cs (1)
331System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Template\SweepableEstimatorFactory.cs (1)
302System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Microsoft.ML.CodeGenerator (10)
Templates\Azure\Console\AzureModelBuilder.cs (1)
401System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Azure\Model\AzureImageModelOutputClass.cs (1)
342System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Azure\Model\AzureObjectDetectionModelOutputClass.cs (1)
342System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ConsumeModel.cs (1)
353System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelBuilder.cs (1)
718System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelInputClass.cs (1)
316System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelOutputClass.cs (1)
359System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\ModelProject.cs (1)
348System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\PredictProgram.cs (1)
375System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Templates\Console\PredictProject.cs (1)
353System.Reflection.MethodInfo method = t.GetMethod("ToString", new System.Type[] {
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (1)
1389il.Emit(OpCodes.Call, CallSiteType.GetMethod("Create", {CallSiteBinderType}))
PresentationCore (10)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (5)
63method = type.GetMethod(methodName, Type.EmptyTypes); 96method = type.GetMethod(methodName, new Type[] { typeof(TArg) }); 146method = obj.GetType().GetMethod(methodName, Type.EmptyTypes); 178method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1) }); 232method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1), typeof(TArg2) });
System\Windows\FontStretchConverter.cs (1)
94MethodInfo mi = typeof(FontStretch).GetMethod("FromOpenTypeStretch", new Type[]{typeof(int)});
System\Windows\FontWeightConverter.cs (1)
94MethodInfo mi = typeof(FontWeight).GetMethod("FromOpenTypeWeight", new Type[]{typeof(int)});
System\Windows\Media\Animation\KeyTimeConverter.cs (2)
146mi = typeof(KeyTime).GetMethod("FromPercent", new Type[] { typeof(double) }); 152mi = typeof(KeyTime).GetMethod("FromTimeSpan", new Type[] { typeof(TimeSpan) });
System\Windows\Media\ColorConverter.cs (1)
104MethodInfo mi = typeof(Color).GetMethod("FromArgb", new Type[]{typeof(byte), typeof(byte), typeof(byte), typeof(byte)});
PresentationFramework (7)
MS\Internal\Data\IndexedEnumerable.cs (1)
479MethodInfo mi = srcType.GetMethod("IndexOf", new Type[] { typeof(object) });
MS\Internal\WindowsRuntime\Generated\WinRT\Marshalers.cs (1)
896typeof(IObjectReference).GetMethod("As", Type.EmptyTypes).MakeGenericMethod(helperType.FindVftblType())
src\Microsoft.DotNet.Wpf\src\Shared\MS\Internal\WindowsRuntime\ReflectionHelper.cs (5)
63method = type.GetMethod(methodName, Type.EmptyTypes); 96method = type.GetMethod(methodName, new Type[] { typeof(TArg) }); 146method = obj.GetType().GetMethod(methodName, Type.EmptyTypes); 178method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1) }); 232method = obj.GetType().GetMethod(methodName, new Type[] { typeof(TArg1), typeof(TArg2) });
PresentationFramework-SystemCore (2)
DynamicAccessorImpl.cs (2)
80createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) }); 100createMethod = callsiteType.GetMethod("Create", new Type[]{ typeof(CallSiteBinder) });
System.ComponentModel.Composition (2)
System\ComponentModel\Composition\ConstraintServices.cs (1)
20private static readonly MethodInfo _metadataEqualsMethod = typeof(object).GetMethod("Equals", new Type[] { typeof(object) })!;
System\ComponentModel\Composition\MetadataViewGenerator.cs (1)
75private static readonly MethodInfo ObjectGetType = typeof(object).GetMethod("GetType", Type.EmptyTypes)!;
System.ComponentModel.TypeConverter (8)
System\ComponentModel\EnumConverter.cs (1)
155MethodInfo? method = typeof(Enum).GetMethod("ToObject", new Type[] { typeof(Type), underlyingType });
System\ComponentModel\MemberDescriptor.cs (1)
408result = componentClass.GetMethod(name, args);
System\ComponentModel\ReflectTypeDescriptionProvider.cs (2)
1281MethodInfo? getMethod = providerType.GetMethod("Get" + provideAttr.PropertyName, new Type[] { receiverType }); 1285MethodInfo? setMethod = providerType.GetMethod("Set" + provideAttr.PropertyName, new Type[] { receiverType, getMethod.ReturnType });
System\ComponentModel\TimeSpanConverter.cs (1)
70typeof(TimeSpan).GetMethod(nameof(TimeSpan.Parse), new Type[] { typeof(string) }),
System\Drawing\ColorConverter.cs (3)
111member = typeof(Color).GetMethod("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int), typeof(int) }); 116member = typeof(Color).GetMethod("FromName", new Type[] { typeof(string) }); 121member = typeof(Color).GetMethod("FromArgb", new Type[] { typeof(int), typeof(int), typeof(int) });
System.Data.Common (1)
System\Data\ColumnTypeConverter.cs (1)
96MethodInfo method = typeof(Type).GetMethod("GetType", new Type[] { typeof(string) })!;
System.Linq.Expressions (26)
System\Dynamic\Utils\CachedReflectionInfo.cs (1)
14s_String_Format_String_ObjectArray ??= typeof(string).GetMethod(nameof(string.Format), new Type[] { typeof(string), typeof(object[]) })!;
System\Linq\Expressions\Common\CachedReflectionInfo.cs (18)
63s_MethodBase_GetMethodFromHandle_RuntimeMethodHandle ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle) })!; 67s_MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!; 71s_MethodInfo_CreateDelegate_Type_Object ??= typeof(MethodInfo).GetMethod(nameof(MethodInfo.CreateDelegate), new[] { typeof(Type), typeof(object) })!; 75s_String_op_Equality_String_String ??= typeof(string).GetMethod("op_Equality", new[] { typeof(string), typeof(string) })!; 79s_String_Equals_String_String ??= typeof(string).GetMethod("Equals", new[] { typeof(string), typeof(string) })!; 83s_DictionaryOfStringInt32_Add_String_Int32 ??= typeof(Dictionary<string, int>).GetMethod(nameof(Dictionary<string, int>.Add), new[] { typeof(string), typeof(int) })!; 99s_Decimal_op_Implicit_Byte ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(byte) })!; 103s_Decimal_op_Implicit_SByte ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(sbyte) })!; 107s_Decimal_op_Implicit_Int16 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(short) })!; 111s_Decimal_op_Implicit_UInt16 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(ushort) })!; 115s_Decimal_op_Implicit_Int32 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(int) })!; 119s_Decimal_op_Implicit_UInt32 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(uint) })!; 123s_Decimal_op_Implicit_Int64 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(long) })!; 127s_Decimal_op_Implicit_UInt64 ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(ulong) })!; 131s_Decimal_op_Implicit_Char ??= typeof(decimal).GetMethod("op_Implicit", new[] { typeof(char) })!; 135s_Math_Pow_Double_Double ??= typeof(Math).GetMethod(nameof(Math.Pow), new[] { typeof(double), typeof(double) })!; 152s_RuntimeOps_CreateRuntimeVariables_ObjectArray_Int64Array ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.CreateRuntimeVariables), new[] { typeof(object[]), typeof(long[]) })!; 156s_RuntimeOps_CreateRuntimeVariables ??= typeof(RuntimeOps).GetMethod(nameof(RuntimeOps.CreateRuntimeVariables), Type.EmptyTypes)!;
System\Linq\Expressions\Compiler\ILGen.cs (1)
17private static readonly MethodInfo s_nullableGetValueOrDefault = typeof(Nullable<>).GetMethod("GetValueOrDefault", Type.EmptyTypes)!;
System\Linq\Expressions\ExpressionStringBuilder.cs (1)
783MethodInfo toString = node.GetType().GetMethod("ToString", Type.EmptyTypes)!;
System\Linq\Expressions\Interpreter\CallInstruction.cs (3)
129typeof(Array).GetMethod("GetValue", new[] { typeof(int) }) : 135typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int) }) : 141typeof(Array).GetMethod("GetValue", new[] { typeof(int), typeof(int), typeof(int) }) :
System\Linq\Expressions\LambdaExpression.cs (2)
24private static readonly MethodInfo s_expressionCompileMethodInfo = typeof(Expression<>).GetMethod("Compile", Type.EmptyTypes)!; 127return typeof(LambdaExpression).GetMethod("Compile", Type.EmptyTypes)!;
System.Net.Security (3)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (3)
115MethodInfo? sendMethod = httpClientType.GetMethod("Send", new Type[] { httpRequestMessageType, typeof(CancellationToken) }); 116MethodInfo? sendAsyncMethod = httpClientType.GetMethod("SendAsync", new Type[] { httpRequestMessageType, typeof(CancellationToken) }); 122MethodInfo? readAsStreamMethod = httpContentType.GetMethod("ReadAsStream", Type.EmptyTypes);
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (1)
111MethodInfo mi = consoleType.GetMethod("WriteLine", s_parameterTypes)!;
src\libraries\System.Private.CoreLib\src\System\Reflection\RuntimeReflectionExtensions.cs (1)
72return type.GetMethod(name, parameters);
src\System\Reflection\Emit\RuntimeMethodBuilder.cs (2)
462MethodInfo rmi = m_containingType.GetMethod(m_strName, m_parameterTypes!)!; 474MethodInfo rmi = m_containingType.GetMethod(m_strName, m_parameterTypes!)!;
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\CodeGenerator.cs (3)
52s_arraySetValue = typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) }); 66s_objectToString = typeof(object).GetMethod("ToString", Type.EmptyTypes); 80s_stringFormat = typeof(string).GetMethod("Format", new Type[] { typeof(string), typeof(object[]) });
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (1)
710_ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System\Runtime\Serialization\ReflectionClassWriter.cs (1)
75MethodInfo getValue = memberType.GetMethod("get_Value", Type.EmptyTypes)!;
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (1)
722_ilg.Call(typeof(RuntimeTypeHandle).GetMethod("Equals", new Type[] { typeof(RuntimeTypeHandle) })!);
System.Private.Xml (75)
System\Xml\Serialization\CodeGenerator.cs (1)
462Call(typeof(Array).GetMethod("SetValue", new Type[] { typeof(object), typeof(int) })!);
System\Xml\Serialization\Models.cs (1)
300_checkShouldPersistMethodInfo = memberInfo.DeclaringType!.GetMethod($"ShouldSerialize{memberInfo.Name}", Type.EmptyTypes);
System\Xml\Serialization\SourceInfo.cs (1)
28return typeof(IList).GetMethod(
System\Xml\Serialization\Types.cs (4)
1252MethodInfo? enumerator = type.GetMethod("GetEnumerator", Type.EmptyTypes); 1289MethodInfo? addMethod = type.GetMethod("Add", new Type[] { currentType }); 1294addMethod = type.GetMethod("Add", new Type[] { currentType }); 1351MethodInfo? addMethod = type.GetMethod("Add", new Type[] { indexer.PropertyType });
System\Xml\Serialization\XmlSchemaExporter.cs (1)
924System.Reflection.MethodInfo? format = formatter.GetMethod("ToString", new Type[] { pm.TypeDesc.Type! });
System\Xml\Serialization\XmlSerializationILGen.cs (1)
212MethodInfo Hashtable_set_Item = typeof(Hashtable).GetMethod(
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
1509getEnumeratorMethod = arrayTypeDesc.Type!.GetMethod( 2457MethodInfo constructorInvoke = typeof(ConstructorInfo).GetMethod("Invoke", new Type[] { typeof(object[]) })!;
System\Xml\Xsl\IlGen\GenerateHelper.cs (59)
118SeqReuse = sequenceType.GetMethod("CreateOrReuse", new[] { sequenceType })!; 119SeqReuseSgl = sequenceType.GetMethod("CreateOrReuse", new[] { sequenceType, storageType })!; 270public static readonly MethodInfo ChangeTypeXsltArg = typeof(XmlQueryRuntime).GetMethod("ChangeTypeXsltArgument", new[] { typeof(int), typeof(object), typeof(Type) })!; 288public static readonly MethodInfo ItemMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(XmlTypeCode) })!; 289public static readonly MethodInfo ItemMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(XPathItem), typeof(int) })!; 290public static readonly MethodInfo QNameEqualLit = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(int), typeof(int) })!; 291public static readonly MethodInfo QNameEqualNav = typeof(XmlQueryRuntime).GetMethod("IsQNameEqual", new[] { typeof(XPathNavigator), typeof(XPathNavigator) })!; 294public static readonly MethodInfo SeqMatchesCode = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(XmlTypeCode) })!; 295public static readonly MethodInfo SeqMatchesType = typeof(XmlQueryRuntime).GetMethod("MatchesXmlType", new[] { typeof(IList<XPathItem>), typeof(int) })!; 299public static readonly MethodInfo TagAndMappings = typeof(XmlQueryRuntime).GetMethod("ParseTagName", new[] { typeof(string), typeof(int) })!; 300public static readonly MethodInfo TagAndNamespace = typeof(XmlQueryRuntime).GetMethod("ParseTagName", new[] { typeof(string), typeof(string) })!; 321public static readonly MethodInfo ValueAsAny = typeof(XPathItem).GetMethod("ValueAs", new[] { typeof(Type), typeof(IXmlNamespaceResolver) })!; 326public static readonly MethodInfo NavMoveAttr = typeof(XPathNavigator).GetMethod("MoveToAttribute", new[] { typeof(string), typeof(string) })!; 337public static readonly MethodInfo StartElemLitName = typeof(XmlQueryOutput).GetMethod("WriteStartElement", new[] { typeof(string), typeof(string), typeof(string) })!; 338public static readonly MethodInfo StartElemLocName = typeof(XmlQueryOutput).GetMethod("WriteStartElementLocalName", new[] { typeof(string) })!; 340public static readonly MethodInfo StartAttrLitName = typeof(XmlQueryOutput).GetMethod("WriteStartAttribute", new[] { typeof(string), typeof(string), typeof(string) })!; 341public static readonly MethodInfo StartAttrLocName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeLocalName", new[] { typeof(string) })!; 344public static readonly MethodInfo NoEntText = typeof(XmlQueryOutput).GetMethod("WriteRaw", new[] { typeof(string) })!; 349public static readonly MethodInfo StartElemLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 350public static readonly MethodInfo StartElemLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartElementUnchecked", new[] { typeof(string) })!; 352public static readonly MethodInfo EndElemLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteEndElementUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 353public static readonly MethodInfo EndElemLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteEndElementUnchecked", new[] { typeof(string) })!; 354public static readonly MethodInfo StartAttrLitNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeUnchecked", new[] { typeof(string), typeof(string), typeof(string) })!; 355public static readonly MethodInfo StartAttrLocNameUn = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeUnchecked", new[] { typeof(string) })!; 363public static readonly MethodInfo StartElemCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(XPathNavigator) })!; 364public static readonly MethodInfo StartElemMapName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(string), typeof(int) })!; 365public static readonly MethodInfo StartElemNmspName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(string), typeof(string) })!; 366public static readonly MethodInfo StartElemQName = typeof(XmlQueryOutput).GetMethod("WriteStartElementComputed", new[] { typeof(XmlQualifiedName) })!; 367public static readonly MethodInfo StartAttrCopyName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(XPathNavigator) })!; 368public static readonly MethodInfo StartAttrMapName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(string), typeof(int) })!; 369public static readonly MethodInfo StartAttrNmspName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(string), typeof(string) })!; 370public static readonly MethodInfo StartAttrQName = typeof(XmlQueryOutput).GetMethod("WriteStartAttributeComputed", new[] { typeof(XmlQualifiedName) })!; 385public static readonly MethodInfo DecCmp = typeof(decimal).GetMethod("Compare", new[] { typeof(decimal), typeof(decimal) })!; 386public static readonly MethodInfo DecEq = typeof(decimal).GetMethod("Equals", new[] { typeof(decimal), typeof(decimal) })!; 393public static readonly MethodInfo StrEq = typeof(string).GetMethod("Equals", new[] { typeof(string), typeof(string) })!; 394public static readonly MethodInfo StrCat2 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string) })!; 395public static readonly MethodInfo StrCat3 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string), typeof(string) })!; 396public static readonly MethodInfo StrCat4 = typeof(string).GetMethod("Concat", new[] { typeof(string), typeof(string), typeof(string), typeof(string) })!; 397public static readonly MethodInfo StrCmp = typeof(string).GetMethod("CompareOrdinal", new[] { typeof(string), typeof(string) })!; 401public static readonly MethodInfo DblToDec = typeof(XsltConvert).GetMethod("ToDecimal", new[] { typeof(double) })!; 402public static readonly MethodInfo DblToInt = typeof(XsltConvert).GetMethod("ToInt", new[] { typeof(double) })!; 403public static readonly MethodInfo DblToLng = typeof(XsltConvert).GetMethod("ToLong", new[] { typeof(double) })!; 404public static readonly MethodInfo DblToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(double) })!; 405public static readonly MethodInfo DecToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(decimal) })!; 406public static readonly MethodInfo DTToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(DateTime) })!; 407public static readonly MethodInfo IntToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(int) })!; 408public static readonly MethodInfo LngToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(long) })!; 409public static readonly MethodInfo StrToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(string) })!; 410public static readonly MethodInfo StrToDT = typeof(XsltConvert).GetMethod("ToDateTime", new[] { typeof(string) })!; 412public static readonly MethodInfo ItemToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(XPathItem) })!; 413public static readonly MethodInfo ItemToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(XPathItem) })!; 414public static readonly MethodInfo ItemToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(XPathItem) })!; 415public static readonly MethodInfo ItemToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(XPathItem) })!; 416public static readonly MethodInfo ItemToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(XPathItem) })!; 418public static readonly MethodInfo ItemsToBool = typeof(XsltConvert).GetMethod("ToBoolean", new[] { typeof(IList<XPathItem>) })!; 419public static readonly MethodInfo ItemsToDbl = typeof(XsltConvert).GetMethod("ToDouble", new[] { typeof(IList<XPathItem>) })!; 420public static readonly MethodInfo ItemsToNode = typeof(XsltConvert).GetMethod("ToNode", new[] { typeof(IList<XPathItem>) })!; 421public static readonly MethodInfo ItemsToNodes = typeof(XsltConvert).GetMethod("ToNodeSet", new[] { typeof(IList<XPathItem>) })!; 422public static readonly MethodInfo ItemsToStr = typeof(XsltConvert).GetMethod("ToString", new[] { typeof(IList<XPathItem>) })!;
System\Xml\Xsl\Runtime\XsltLibrary.cs (5)
23public static readonly MethodInfo EnsureNodeSet = typeof(XsltConvert).GetMethod("EnsureNodeSet", new[] { typeof(IList<XPathItem>) })!; 34public static readonly MethodInfo Substring2 = typeof(XsltFunctions).GetMethod("Substring", new[] { typeof(string), typeof(double) })!; 35public static readonly MethodInfo Substring3 = typeof(XsltFunctions).GetMethod("Substring", new[] { typeof(string), typeof(double), typeof(double) })!; 39public static readonly MethodInfo Floor = typeof(Math).GetMethod("Floor", new[] { typeof(double) })!; 40public static readonly MethodInfo Ceiling = typeof(Math).GetMethod("Ceiling", new[] { typeof(double) })!;
System.Reflection.DispatchProxy (2)
System\Reflection\DispatchProxyGenerator.cs (2)
52private static readonly MethodInfo s_getTypeFromHandleMethod = typeof(Type).GetMethod("GetTypeFromHandle", new Type[] { typeof(RuntimeTypeHandle) })!; 59typeof(MethodInfo).GetMethod("MakeGenericMethod", new Type[] { typeof(Type[]) })!;
System.Reflection.TypeExtensions (1)
System\Reflection\TypeExtensions.cs (1)
234return type.GetMethod(name, types);
System.Security.Cryptography (4)
src\libraries\Common\src\System\Net\Http\X509ResourceClient.cs (3)
115MethodInfo? sendMethod = httpClientType.GetMethod("Send", new Type[] { httpRequestMessageType, typeof(CancellationToken) }); 116MethodInfo? sendAsyncMethod = httpClientType.GetMethod("SendAsync", new Type[] { httpRequestMessageType, typeof(CancellationToken) }); 122MethodInfo? readAsStreamMethod = httpContentType.GetMethod("ReadAsStream", Type.EmptyTypes);
System\Security\Cryptography\CryptoConfigForwarder.cs (1)
33MethodInfo? createFromName = t.GetMethod(CreateFromNameMethodName, new[] { typeof(string) });
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (2)
736MethodInfo? mi = GetReflectionTypeHelper(manager, target).GetMethod(methodRef.MethodName, paramTypes); 743mi = target.GetType().GetMethod(methodRef.MethodName, paramTypes)!;
System.Xaml (1)
System\Xaml\Runtime\DynamicMethodRuntime.cs (1)
597s_InvokeMemberMethod = typeof(Type).GetMethod(KnownStrings.InvokeMember,
System.Xaml.Tests (17)
System\Xaml\Schema\XamlTypeInvokerTests.cs (5)
303type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(string) }) 317type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(string) }) 323type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) }) 329type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) }) 343type.GetMethod(nameof(ClassWithAllowedContentTypes.Add), new Type[] { typeof(Array) })
System\Xaml\XamlTypeTests.cs (12)
816new XamlMember("Event", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 817new XamlMember("Getter", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 820new XamlMember("InternalThenPublic", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetInternalThenPublic), new Type[] { typeof(int) }), null, new XamlSchemaContext()), 821new XamlMember("InternalThenPublicEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddInternalThenPublicEventHandler), new Type[] { typeof(object), typeof(OtherHandler) }), new XamlSchemaContext()), 822new XamlMember("PublicThenInternal", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 823new XamlMember("PublicThenInternalEvent", typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 824new XamlMember("Setter", null, typeof(DuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new XamlSchemaContext()), 833new XamlMember("Event", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 834new XamlMember("Getter", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetGetter), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 839new XamlMember("PublicThenInternal", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.GetPublicThenInternal), new Type[] { typeof(string) }), null, new XamlSchemaContext()), 840new XamlMember("PublicThenInternalEvent", typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.AddPublicThenInternalEventHandler), new Type[] { typeof(object), typeof(EventHandler) }), new XamlSchemaContext()), 841new XamlMember("Setter", null, typeof(PrivateDuplicateDataClass).GetMethod(nameof(DuplicateDataClass.SetSetter), new Type[] { typeof(string), typeof(int) }), new XamlSchemaContext()),