src\libraries\System.Private.CoreLib\src\System\DefaultBinder.cs (21)
31public sealed override MethodBase BindToMethod(
32BindingFlags bindingAttr, MethodBase[] match, ref object?[] args,
38MethodBase?[] candidates = (MethodBase[])match.Clone();
386MethodBase bestMatch = candidates[currentMin]!;
540public sealed override MethodBase? SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[]? modifiers)
558MethodBase[] candidates = (MethodBase[])match.Clone();
626MethodBase bestMatch = candidates[currentMin];
791public static MethodBase? ExactBinding(MethodBase[] match, Type[] types)
795MethodBase[] aExactMatches = new MethodBase[match.Length];
1014private static int FindMostSpecificMethod(MethodBase m1, int[] paramOrder1, Type? paramArrayType1,
1015MethodBase m2, int[] paramOrder2, Type? paramArrayType2,
1097public static bool CompareMethodSig(MethodBase m1, MethodBase m2)
1129internal static MethodBase? FindMostDerivedNewSlotMeth(MethodBase[] match, int cMatches)
1132MethodBase? methWithDeepestHierarchy = null;
src\System\RuntimeType.CoreCLR.cs (20)
214internal MethodBase AddMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method, CacheType cacheType)
283return (MethodBase)(object)list[0];
1724internal MethodBase GetMethod(RuntimeType declaringType, RuntimeMethodHandleInternal method)
1730internal MethodBase GetConstructor(RuntimeType declaringType, RuntimeMethodHandleInternal constructor)
1772internal static MethodBase? GetMethodBase(RuntimeModule scope, int typeMetadataToken)
1777internal static MethodBase? GetMethodBase(IRuntimeMethodInfo methodHandle)
1782internal static MethodBase? GetMethodBase(RuntimeType? reflectedType, IRuntimeMethodInfo methodHandle)
1784MethodBase? retval = GetMethodBase(reflectedType, methodHandle.Value);
1792internal static MethodBase? GetMethodBase(RuntimeType? reflectedType, RuntimeMethodHandleInternal methodHandle)
1824MethodBase[] methodBases = (reflectedType.GetMember(
1826BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance) as MethodBase[])!;
1901MethodBase retval;
2254MethodBase methodBase, BindingFlags methodFlags, BindingFlags bindingFlags, CallingConventions callConv, Type[]? argumentTypes)
2744MethodBase ifaceMethodBase = GetMethodBase(ifaceRtType, ifaceRtMethodHandle)!;
2760MethodBase? rtTypeMethodBase = GetMethodBase(reflectedType, classRtMethodHandle);
3096new MethodBase[totalCount] : new MemberInfo[totalCount];
3247public override MethodBase? DeclaringMethod
3870MethodBase[] cons = new MethodBase[candidates.Count];
3901MethodBase? invokeMethod;