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;
src\System\RuntimeType.CoreCLR.cs (20)
209internal MethodBase AddMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method, CacheType cacheType)
278return (MethodBase)(object)list[0];
1751internal MethodBase GetMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method)
1757internal MethodBase GetConstructor(RuntimeType declaringType, RuntimeMethodHandleInternal constructor)
1799internal static MethodBase? GetMethodBase(RuntimeModule scope, int typeMetadataToken)
1804internal static MethodBase? GetMethodBase(IRuntimeMethodInfo methodHandle)
1809internal static MethodBase? GetMethodBase(RuntimeType? reflectedType, IRuntimeMethodInfo methodHandle)
1811MethodBase? retval = GetMethodBase(reflectedType, methodHandle.Value);
1819internal static MethodBase? GetMethodBase(RuntimeType? reflectedType, RuntimeMethodHandleInternal methodHandle)
1851MethodBase[] methodBases = (reflectedType.GetMember(
1853BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) as MethodBase[])!;
1928MethodBase retval;
2281MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes)
2778MethodBase ifaceMethodBase = GetMethodBase(ifaceRtType, ifaceRtMethodHandle)!;
2797MethodBase? rtTypeMethodBase = GetMethodBase(reflectedType, classRtMethodHandle);
3139new MethodBase[totalCount] : new MemberInfo[totalCount];
3293public override MethodBase? DeclaringMethod
3895MethodBase[] cons = new MethodBase[candidates.Count];
3926MethodBase? invokeMethod;