77 references to GetMethodInfo
ILCompiler.Compiler (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
336/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetMethodInfo(System.Delegate)"/>
illink (1)
ILLink.RoslynAnalyzer (1)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (1)
336/// <see cref="System.Reflection.RuntimeReflectionExtensions.GetMethodInfo(System.Delegate)"/>
Microsoft.AspNetCore (2)
WebHost.cs (2)
48var startupAssemblyName = app.GetMethodInfo().DeclaringType!.Assembly.GetName().Name; 70var startupAssemblyName = routeBuilder.GetMethodInfo().DeclaringType!.Assembly.GetName().Name;
Microsoft.AspNetCore.Hosting (7)
GenericHost\GenericWebHostBuilder.cs (3)
193var startupAssemblyName = startupFactory.GetMethodInfo().DeclaringType!.Assembly.GetName().Name; 318var startupAssemblyName = configure.GetMethodInfo().DeclaringType!.Assembly.GetName().Name!; 343var startupAssemblyName = configure.GetMethodInfo().DeclaringType!.Assembly.GetName().Name!;
GenericHost\SlimWebHostBuilder.cs (1)
79var startupAssemblyName = configure.GetMethodInfo().DeclaringType!.Assembly.GetName().Name!;
WebHostBuilderExtensions.cs (3)
41var startupAssemblyName = configureApp.GetMethodInfo().DeclaringType!.Assembly.GetName().Name!; 70var startupAssemblyName = configureApp.GetMethodInfo().DeclaringType!.Assembly.GetName().Name!; 100var startupAssemblyName = startupFactory.GetMethodInfo().DeclaringType!.Assembly.GetName().Name;
Microsoft.CodeAnalysis.Scripting (2)
ScriptExecutionState.cs (2)
136Activator.CreateInstance(precedingExecutors[executorIndex++].GetMethodInfo().DeclaringType, submissionCtorArgs); 147Activator.CreateInstance(currentExecutor.GetMethodInfo().DeclaringType, submissionCtorArgs);
Microsoft.Extensions.AI.Tests (1)
Functions\AIFunctionFactoryTest.cs (1)
1672AIFunction func = AIFunctionFactory.Create(testDelegate.GetMethodInfo(), testDelegate.Target);
Microsoft.Maui (4)
WeakEventManager.cs (4)
25 AddEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 36 AddEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 91 RemoveEventHandler(eventName, handler.Target, handler.GetMethodInfo()); 102 RemoveEventHandler(eventName, handler.Target, handler.GetMethodInfo());
Microsoft.Maui.Controls (2)
MessagingCenter.cs (2)
154 InnerSubscribe(subscriber, message, typeof(TSender), typeof(TArgs), target, callback.GetMethodInfo(), filter); 177 InnerSubscribe(subscriber, message, typeof(TSender), null, target, callback.GetMethodInfo(), filter);
Microsoft.ML.Core (1)
Utilities\Utils.cs (1)
1188var meth = func.GetMethodInfo();
Microsoft.ML.Data (21)
Commands\ShowSchemaCommand.cs (2)
223var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(type.RawType); 262var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(type.ItemType.RawType);
Data\RowCursorUtils.cs (5)
65var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeDst.RawType); 86var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType, typeof(TDst)); 164var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeDst.RawType); 184var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst)); 201var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.ItemType.RawType, typeof(TDst));
Data\SchemaDefinition.cs (1)
236internal Type ReturnType => Generator?.GetMethodInfo().GetParameters().LastOrDefault().ParameterType.GetElementType();
DataLoadSave\Binary\BinaryLoader.cs (1)
197var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(Type.RawType);
DataLoadSave\Binary\BinarySaver.cs (2)
269MethodInfo methInfo = del.GetMethodInfo().GetGenericMethodDefinition(); 743MethodInfo methInfo = del.GetMethodInfo().GetGenericMethodDefinition();
DataLoadSave\Transpose\TransposeLoader.cs (1)
807var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(itemType.RawType);
DataView\InternalSchemaDefinition.cs (3)
67var returnParameterInfo = generator.GetMethodInfo().GetParameters()[2]; 111var parameterInfos = Generator.GetMethodInfo().GetParameters().ToArray(); 119Contracts.Assert(Generator.GetMethodInfo().ReturnType == typeof(void));
DataView\LambdaColumnMapper.cs (1)
75var meth = del.GetMethodInfo().GetGenericMethodDefinition()
DataView\LambdaFilter.cs (1)
64var meth = del.GetMethodInfo().GetGenericMethodDefinition()
DataView\TypedCursor.cs (1)
417MethodInfo meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(genericType);
Scorers\FeatureContributionCalculation.cs (1)
198var meth = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(typeSrc.RawType);
Transforms\KeyToValue.cs (1)
242var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(
Transforms\RangeFilter.cs (1)
337var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(filter._type.RawType);
Microsoft.ML.DataView (1)
Utils.cs (1)
40var meth = func.GetMethodInfo();
Microsoft.ML.Tests (4)
ExpressionLanguageTests\ExpressionLanguageTests.cs (4)
205wrt.WriteLine("Unknown Exception: {0}!", del != null ? del.GetMethodInfo().DeclaringType : (object)"<null>"); 479((Func<I8, I8>)(X)).GetMethodInfo(), 639Contracts.Assert(funcs[i].GetMethodInfo() != null); 640meths[i] = funcs[i].GetMethodInfo();
Microsoft.ML.Transforms (20)
CountFeatureSelection.cs (2)
355var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(colType.RawType); 367var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(colType.ItemType.RawType);
Expression\BuiltinFunctions.cs (5)
76return fn.GetMethodInfo(); 86return fn.GetMethodInfo(); 96return fn.GetMethodInfo(); 106return fn.GetMethodInfo(); 135return fn.GetMethodInfo();
Expression\CodeGen.cs (5)
102private static readonly MethodInfo _methGetFalseBL = ((Func<BL>)BuiltinFunctions.False).GetMethodInfo(); 103private static readonly MethodInfo _methGetTrueBL = ((Func<BL>)BuiltinFunctions.True).GetMethodInfo(); 679_gen.Call(fn.GetMethodInfo()); 684_gen.Call(fn.GetMethodInfo()); 689_gen.Call(fn.GetMethodInfo());
ExpressionTransformer.cs (2)
455var meth = d.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(types); 597var meth = d.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(types);
MissingValueReplacing.cs (4)
243var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(savedVectorType.ItemType.RawType); 407var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(dstType.GetItemType().RawType); 512var method = function.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(repType.RawType); 520var meth = func.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(repValue.GetType());
MutualInformationFeatureSelection.cs (2)
556var methodInfo = del.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(labelType.RawType); 635var cmiMethodInfo = cmiDel.GetMethodInfo().GetGenericMethodDefinition().MakeGenericMethod(itemType.RawType);
System.Linq.Expressions (9)
System\Dynamic\Utils\DelegateHelpers.cs (1)
78private static MethodInfo GetEmptyObjectArrayMethod() => ((Func<object[]>)Array.Empty<object>).GetMethodInfo();
System\Runtime\CompilerServices\CallSiteOpsReflectionCache.cs (8)
15public static readonly MethodInfo CreateMatchmaker = ((Delegate)CallSiteOps.CreateMatchmaker<T>).GetMethodInfo(); 18public static readonly MethodInfo UpdateRules = ((Delegate)CallSiteOps.UpdateRules<T>).GetMethodInfo(); 21public static readonly MethodInfo GetRules = ((Delegate)CallSiteOps.GetRules<T>).GetMethodInfo(); 24public static readonly MethodInfo GetRuleCache = ((Delegate)CallSiteOps.GetRuleCache<T>).GetMethodInfo(); 27public static readonly MethodInfo GetCachedRules = ((Delegate)CallSiteOps.GetCachedRules<T>).GetMethodInfo(); 30public static readonly MethodInfo AddRule = ((Delegate)CallSiteOps.AddRule<T>).GetMethodInfo(); 33public static readonly MethodInfo MoveRule = ((Delegate)CallSiteOps.MoveRule<T>).GetMethodInfo(); 36public static readonly MethodInfo Bind = ((Delegate)CallSiteOps.Bind<T>).GetMethodInfo();