3 types derived from MethodBase
System.Private.CoreLib (3)
363 references to MethodBase
Aspire.Hosting.RemoteHost (2)
dotnet-svcutil-lib (22)
GenerateDocumentationAndConfigFiles (1)
Microsoft.AspNetCore.Diagnostics (4)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.Build (6)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CSharp (15)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.Extensions.AI.Abstractions (4)
Microsoft.TestPlatform.AdapterUtilities (16)
Microsoft.TestPlatform.CommunicationUtilities (13)
Mono.Cecil (14)
mscorlib (1)
netstandard (1)
Roslyn.Diagnostics.Analyzers (1)
System.Linq.Expressions (33)
System\Dynamic\Utils\ExpressionUtils.cs (4)
100public static void ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ref ReadOnlyCollection<Expression> arguments, string? methodParamName)
131public static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
151public static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arguments, ParameterInfo pi, string? methodParamName, string argumentParamName, int index = -1)
232internal static ParameterInfo[] GetParametersForValidation(MethodBase method, ExpressionType nodeKind)
System\Linq\Expressions\MethodCallExpression.cs (5)
1269private static void ValidateArgumentTypes(MethodBase method, ExpressionType nodeKind, ref ReadOnlyCollection<Expression> arguments, string methodParamName)
1274private static ParameterInfo[] GetParametersForValidation(MethodBase method, ExpressionType nodeKind)
1279private static void ValidateArgumentCount(MethodBase method, ExpressionType nodeKind, int count, ParameterInfo[] pis)
1284private static Expression ValidateOneArgument(MethodBase method, ExpressionType nodeKind, Expression arg, ParameterInfo pi, string methodParamName, string argumentParamName)
1347private static bool IsCompatible(MethodBase m, Expression[] arguments)
System.Private.CoreLib (108)
src\runtime\src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (21)
33public sealed override MethodBase BindToMethod(
34BindingFlags bindingAttr, MethodBase[] match, ref object?[] args,
40MethodBase?[] candidates = (MethodBase[])match.Clone();
388MethodBase bestMatch = candidates[currentMin]!;
542public sealed override MethodBase? SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[]? modifiers)
560MethodBase[] candidates = (MethodBase[])match.Clone();
628MethodBase bestMatch = candidates[currentMin];
793public static MethodBase? ExactBinding(MethodBase[] match, Type[] types)
797MethodBase[] aExactMatches = new MethodBase[match.Length];
1016private static int FindMostSpecificMethod(MethodBase m1, int[] paramOrder1, Type? paramArrayType1,
1017MethodBase m2, int[] paramOrder2, Type? paramArrayType2,
1099public static bool CompareMethodSig(MethodBase m1, MethodBase m2)
1131internal static MethodBase? FindMostDerivedNewSlotMeth(MethodBase[] match, int cMatches)
1134MethodBase? methWithDeepestHierarchy = null;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.cs (5)
17public static MethodBaseInvoker GetCustomMethodInvokerIfNeeded(this MethodBase methodBase)
22Dictionary<MethodBase, CustomMethodInvokerAction> map;
44private static void AddConstructor(this Dictionary<MethodBase, CustomMethodInvokerAction> map, Type declaringType, Type[] parameterTypes, CustomMethodInvokerAction action)
51private static void AddMethod(this Dictionary<MethodBase, CustomMethodInvokerAction> map, Type declaringType, string name, Type[] parameterTypes, CustomMethodInvokerAction action)
55MethodBase? methodBase;
System.Private.Reflection.Execution (9)
System.Private.Xml (3)
System.Reflection (1)
System.Reflection.Context (8)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (36)
System\Reflection\DefaultBinder.cs (18)
37public sealed override MethodBase BindToMethod(
38BindingFlags bindingAttr, MethodBase[] match, ref object?[] args,
47public sealed override MethodBase? SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[]? modifiers)
65MethodBase[] candidates = (MethodBase[])match.Clone();
140MethodBase bestMatch = candidates[currentMin];
274public static MethodBase? ExactBinding(MethodBase[] match, Type[] types)
278MethodBase[] aExactMatches = new MethodBase[match.Length];
498private static int FindMostSpecificMethod(MethodBase m1, int[] paramOrder1, Type? paramArrayType1,
499MethodBase m2, int[] paramOrder2, Type? paramArrayType2,
558public static bool CompareMethodSig(MethodBase m1, MethodBase m2)
590internal static MethodBase? FindMostDerivedNewSlotMeth(MethodBase[] match, int cMatches)
593MethodBase? methWithDeepestHierarchy = null;
System.Runtime (1)
System.Runtime.InteropServices.JavaScript (1)
System.Security.Cryptography (4)
System.ServiceModel.Primitives (14)
System.Text.Json (1)
System.Windows.Forms.Design (1)
System.Xaml (12)
testhost (2)
testhost.arm64 (2)
testhost.x86 (2)
UIAutomationClient (1)