3 types derived from MethodBase
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ConstructorInfo.cs (1)
10public abstract partial class ConstructorInfo : MethodBase
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.cs (1)
9public abstract partial class MethodInfo : MethodBase
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodInfo.Internal.cs (1)
6public abstract partial class MethodInfo : MethodBase
363 references to MethodBase
Aspire.Hosting.RemoteHost (2)
AtsCapabilityScanner.cs (2)
3813MethodBase method when method.DeclaringType is not null => GetXmlDocumentationMethodName(method), 3818private static string GetXmlDocumentationMethodName(MethodBase method)
dotnet-svcutil-lib (22)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeGenerator.cs (1)
1452private void LoadParam(object arg, int oneBasedArgIndex, MethodBase methodInfo)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\Globals.cs (6)
1019private static MethodBase FilterMethodBases(MethodBase[] methodBases, Type[] parameterTypes, string methodName) 1032var constructorInfo = FilterMethodBases(constructorInfos.Cast<MethodBase>().ToArray(), parameterTypes, ".ctor"); 1039var methodInfo = FilterMethodBases(methodInfos.Cast<MethodBase>().ToArray(), parameterTypes, methodName);
FrameworkFork\System.ServiceModel\Extensions\ReflectionExtensions.cs (1)
183public static RuntimeMethodHandle MethodHandle(this MethodBase mb)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MethodCall.cs (2)
19public MethodCall(MethodBase methodBase, object[] args) : this(args) 25public MethodBase MethodBase { get; private set; }
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ServiceChannelProxy.cs (9)
56MethodBase method = methodCall.MethodBase; 379MethodBase targetMethod = methodCall.MethodBase; 409public bool TryGetMethodData(MethodBase method, out MethodData methodData) 428private static int FindMethod(MethodData[] methodDatas, MethodBase methodToFind) 432MethodBase method = methodDatas[i].MethodBase; 482private MethodBase _methodBase; 486public MethodData(MethodBase methodBase, MethodType methodType) 491public MethodData(MethodBase methodBase, MethodType methodType, ProxyOperationRuntime operation) 498public MethodBase MethodBase
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\IClientOperationSelector.cs (1)
14string SelectOperation(MethodBase method, object[] parameters);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
182internal ProxyOperationRuntime GetOperation(MethodBase methodBase, object[] args, out bool canCacheResult)
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
77public string SelectOperation(MethodBase method, object[] parameters)
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.AspNetCore.Diagnostics (4)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (4)
46var method = frame.GetMethod(); 75internal static MethodDisplayInfo? GetMethodDisplayString(MethodBase? method) 152private static bool ShowInStackTrace(MethodBase method) 196private static bool TryResolveStateMachineMethod(ref MethodBase method, out Type? declaringType)
Microsoft.AspNetCore.Hosting (4)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (4)
46var method = frame.GetMethod(); 75internal static MethodDisplayInfo? GetMethodDisplayString(MethodBase? method) 152private static bool ShowInStackTrace(MethodBase method) 196private static bool TryResolveStateMachineMethod(ref MethodBase method, out Type? declaringType)
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ParameterDefaultValues.cs (1)
12public static object?[] GetParameterDefaultValues(MethodBase methodInfo)
Microsoft.AspNetCore.Server.IIS (4)
src\aspnetcore\src\Shared\StackTrace\StackFrame\StackTraceHelper.cs (4)
46var method = frame.GetMethod(); 75internal static MethodDisplayInfo? GetMethodDisplayString(MethodBase? method) 152private static bool ShowInStackTrace(MethodBase method) 196private static bool TryResolveStateMachineMethod(ref MethodBase method, out Type? declaringType)
Microsoft.Build (6)
Evaluation\Expander.Function.cs (4)
1253MethodBase memberInfo; 1271IEnumerable<MethodBase> members; 1287members = foundMembers.Cast<MethodBase>(); 1294foreach (MethodBase member in members)
Evaluation\IntrinsicFunctionOverload.cs (2)
30MethodBase? method = member as MethodBase;
Microsoft.Build.Tasks.CodeAnalysis (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis (3)
InternalSpecialType.cs (2)
45/// Indicates that the type is <see cref="System.Reflection.MethodBase"/> from the COR library. 48/// Check for this special type cannot be used to find the "canonical" definition of <see cref="System.Reflection.MethodBase"/>
InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CodeAnalysis.Scripting (3)
Hosting\CommonMemberFilter.cs (1)
20var method = frame.GetMethod();
Hosting\ObjectFormatter\CommonObjectFormatter.cs (2)
84var method = frame.GetMethod(); 111protected internal virtual string FormatMethodSignature(MethodBase method)
Microsoft.CodeAnalysis.Workspaces (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
Microsoft.CSharp (15)
Microsoft\CSharp\RuntimeBinder\RuntimeBinderExtensions.cs (11)
79private static bool AreParametersEquivalent(this MethodBase method1, MethodBase method2) 99private static bool IsEquivalentTo(this ParameterInfo pi1, ParameterInfo pi2, MethodBase method1, MethodBase method2) 141Debug.Assert(!(member1 is MethodBase) || 142!((MethodBase)member1).IsGenericMethod || 143(((MethodBase)member1).IsGenericMethodDefinition && ((MethodBase)member2).IsGenericMethodDefinition)); 229if (!(member is MethodBase)) 234MethodBase method = (MethodBase)member;
Microsoft\CSharp\RuntimeBinder\SymbolTable.cs (4)
131private static void AddParameterConversions(MethodBase method) 762MethodBase methodBase = t.DeclaringMethod; 1362private static MethodSymbol AddMethodToSymbolTable(MethodBase member, AggregateSymbol callingAggregate, MethodKindEnum kind) 1641bool isVarArg = associatedInfo is MethodBase mb && (mb.CallingConvention & CallingConventions.VarArgs) != 0;
Microsoft.DotNet.Build.Tasks.Workloads (1)
EmbeddedTemplates.cs (1)
66string ns = MethodBase.GetCurrentMethod().DeclaringType.Namespace;
Microsoft.Extensions.AI.Abstractions (4)
Utilities\AIJsonSchemaCreateOptions.cs (3)
28/// Gets a callback that is invoked for every parameter in the <see cref="MethodBase"/> provided to 40/// Gets a callback that is invoked for each parameter in the <see cref="MethodBase"/> provided to 46/// the description will be sourced from the <see cref="MethodBase"/> metadata (like <see cref="DescriptionAttribute"/>),
Utilities\AIJsonUtilities.Schema.Create.cs (1)
76MethodBase method,
Microsoft.TestPlatform.AdapterUtilities (16)
Helpers\ReflectionHelpers.MethodBase.cs (3)
11internal static bool IsMethod(MethodBase method) 16internal static Type? GetReflectedType(MethodBase method) 21internal static RuntimeMethodHandle GetMethodHandle(MethodBase method)
Helpers\ReflectionHelpers.Type.cs (1)
16internal static MethodBase? GetDeclaringMethod(Type type)
ManagedNameUtilities\ManagedNameHelper.Reflection.cs (12)
34/// A <see cref="MethodBase" /> instance to get fully qualified managed type and method name. 59public static void GetManagedName(MethodBase method, out string managedTypeName, out string managedMethodName) 66/// A <see cref="MethodBase" /> instance to get fully qualified managed type and method name. 95public static void GetManagedName(MethodBase method, out string managedTypeName, out string managedMethodName, out string?[] hierarchyValues) 115/// A <see cref="MethodBase" /> instance to get default hierarchy values. 129public static string?[] GetManagedHierarchy(MethodBase method) 136private static void GetManagedNameAndHierarchy(MethodBase method, bool useClosedTypes, out string managedTypeName, out string managedMethodName, out string?[] hierarchyValues) 160method = MethodBase.GetMethodFromHandle(methodHandle, semanticType.TypeHandle)!; 244/// Gets the <see cref="MethodBase"/> object with the specified <paramref name="managedTypeName"/> 259/// A <see cref="MethodBase" /> object that represents specified parameters, throws if null. 269public static MethodBase GetMethod(Assembly assembly, string managedTypeName, string managedMethodName) 536private static void AppendGenericMethodParameters(StringBuilder methodBuilder, MethodBase method)
Microsoft.TestPlatform.CommunicationUtilities (13)
Generated\361d1da7f942c932\TestPlatformJsonContext.GetJsonTypeInfo.g.cs (1)
398if (type == typeof(global::System.Reflection.MethodBase))
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.Exception.g.cs (3)
195var info7 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::System.Reflection.MethodBase> 210AttributeProviderFactory = static () => typeof(global::System.Exception).GetProperty("TargetSite", InstanceMemberBindingFlags, null, typeof(global::System.Reflection.MethodBase), global::System.Array.Empty<global::System.Type>(), null), 213properties[7] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::System.Reflection.MethodBase>(options, info7);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\TestPlatformJsonContext.MethodBase.g.cs (9)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Reflection.MethodBase>? _MethodBase; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Reflection.MethodBase> MethodBase 22get => _MethodBase ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Reflection.MethodBase>)Options.GetTypeInfo(typeof(global::System.Reflection.MethodBase)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Reflection.MethodBase> Create_MethodBase(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::System.Reflection.MethodBase>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Reflection.MethodBase> jsonTypeInfo)) 29jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateValueInfo<global::System.Reflection.MethodBase>(options, global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.GetUnsupportedTypeConverter<global::System.Reflection.MethodBase>());
Mono.Cecil (14)
Mono.Cecil\Import.cs (10)
40 MethodReference ImportReference (SR.MethodBase method, IGenericParameterProvider context); 217 static bool ImportOpenGenericMethod (SR.MethodBase method, ImportGenericKind import_kind) 261 static string NormalizeMethodName (SR.MethodBase method) 381 static SR.MethodBase ResolveMethodDefinition (SR.MethodBase method) 386 MethodReference ImportMethod (SR.MethodBase method, ImportGenericContext context, ImportGenericKind import_kind) 441 static bool IsMethodSpecification (SR.MethodBase method) 446 MethodReference ImportMethodSpecification (SR.MethodBase method, ImportGenericContext context) 468 static bool HasCallingConvention (SR.MethodBase method, SR.CallingConventions conventions) 488 public virtual MethodReference ImportReference (SR.MethodBase method, IGenericParameterProvider context)
Mono.Cecil\ModuleDefinition.cs (4)
875 public MethodReference Import (SR.MethodBase method) 882 public MethodReference Import (SR.MethodBase method, IGenericParameterProvider context) 888 public MethodReference ImportReference (SR.MethodBase method) 894 public MethodReference ImportReference (SR.MethodBase method, IGenericParameterProvider context)
mscorlib (1)
parent\ref\mscorlib.cs (1)
473[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MethodBase))]
netstandard (1)
netstandard.cs (1)
1441[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MethodBase))]
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ReflectionUtilities.cs (1)
80where T : MethodBase
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\Dynamic\Utils\TypeExtensions.cs (5)
13private static readonly CacheDict<MethodBase, ParameterInfo[]> s_paramInfoCache = new CacheDict<MethodBase, ParameterInfo[]>(75); 65public static Type GetReturnType(this MethodBase mi) => mi.IsConstructor ? mi.DeclaringType! : ((MethodInfo)mi).ReturnType; 68internal static ParameterInfo[] GetParametersCached(this MethodBase method) 70CacheDict<MethodBase, ParameterInfo[]> pic = s_paramInfoCache;
System\Linq\Expressions\Common\CachedReflectionInfo.cs (4)
24public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle) })!; 25public static MethodInfo MethodBase_GetMethodFromHandle_RuntimeMethodHandle_RuntimeTypeHandle => field ??= typeof(MethodBase).GetMethod(nameof(MethodBase.GetMethodFromHandle), new[] { typeof(RuntimeMethodHandle), typeof(RuntimeTypeHandle) })!;
System\Linq\Expressions\Compiler\ILGen.cs (5)
19internal static void Emit(this ILGenerator il, OpCode opcode, MethodBase methodBase) 373return value is MethodBase mb && ShouldLdtoken(mb); 438if (value is MethodBase mb && ShouldLdtoken(mb)) 452if (type != typeof(MethodBase)) 470internal static bool ShouldLdtoken(MethodBase mb)
System\Linq\Expressions\Compiler\LambdaCompiler.Expressions.cs (2)
503private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args) 513private List<WriteBack>? EmitArguments(MethodBase method, IArgumentProvider args, int skipParameters)
System\Linq\Expressions\Compiler\StackSpiller.ChildRewriter.cs (1)
331internal void MarkRefArgs(MethodBase method, int startIndex)
System\Linq\Expressions\Compiler\StackSpiller.cs (1)
1058private static void RequireNoRefArgs(MethodBase? method)
System\Linq\Expressions\Interpreter\InterpretedFrame.cs (1)
127public static bool IsInterpretedFrame(MethodBase method)
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\Runtime\CompilerServices\CallSiteHelpers.cs (4)
17/// Checks if a <see cref="MethodBase"/> is internally used by DLR and should not 20/// <param name="mb">The input <see cref="MethodBase"/></param> 22/// True if the input <see cref="MethodBase"/> is internally used by DLR and should not 25public static bool IsInternalFrame(MethodBase mb)
System\Runtime\CompilerServices\DebugInfoGenerator.cs (1)
35internal virtual void MarkSequencePoint(LambdaExpression method, MethodBase methodBase, ILGenerator ilg, DebugInfoExpression sequencePoint)
System.Private.CoreLib (108)
Internal\Reflection\Augments\ReflectionAugments.cs (6)
114public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle) 123MethodBase methodBase = ExecutionDomain.GetMethod(declaringTypeHandle, methodHandle, genericMethodTypeArgumentHandles); 132public static MethodBase GetMethodFromHandle(RuntimeMethodHandle runtimeMethodHandle, RuntimeTypeHandle declaringTypeHandle) 149MethodBase methodBase = ExecutionDomain.GetMethod(declaringTypeHandle, methodHandle, genericMethodTypeArgumentHandles); 371MethodBase method = GetMethodFromHandle(runtimeMethodHandle, declaringTypeHandle); 511public static MethodBase GetMethodBaseFromStartAddressIfAvailable(IntPtr methodStartAddress)
Internal\Reflection\Core\Execution\ExecutionDomain.cs (1)
32public static MethodBase GetMethod(RuntimeTypeHandle declaringTypeHandle, QMethodDefinition methodHandle, RuntimeTypeHandle[] genericMethodTypeArgumentHandles)
Internal\Reflection\Core\Execution\ExecutionEnvironment.cs (1)
82public abstract MethodBase GetMethodBaseFromStartAddressIfAvailable(IntPtr methodStartAddress);
Internal\Runtime\CompilerHelpers\ReflectionHelpers.cs (4)
37public static MethodBase GetCurrentMethodNonGeneric(RuntimeMethodHandle methodHandle) 39return MethodBase.GetMethodFromHandle(methodHandle); 43public static MethodBase GetCurrentMethodGeneric(RuntimeMethodHandle methodHandle, RuntimeTypeHandle typeHandle) 45return MethodBase.GetMethodFromHandle(methodHandle, typeHandle);
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;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\DiagnosticMethodInfo.cs (1)
11/// provided by <see cref="MethodBase"/> but it's meant for logging and tracing purposes.
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackFrame.cs (1)
19private MethodBase? _method;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\StackTrace.cs (2)
375private static bool ShowInStackTrace(MethodBase mb) 435private static bool TryResolveStateMachineMethod(ref MethodBase method, out Type declaringType)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Binder.cs (4)
12public abstract MethodBase BindToMethod(BindingFlags bindingAttr, MethodBase[] match, ref object?[] args, ParameterModifier[]? modifiers, CultureInfo? culture, string[]? names, out object? state); 15public abstract MethodBase? SelectMethod(BindingFlags bindingAttr, MethodBase[] match, Type[] types, ParameterModifier[]? modifiers);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\TypeBuilderInstantiation.cs (1)
250public override MethodBase? DeclaringMethod => null;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\MethodBase.cs (4)
69public static bool operator ==(MethodBase? left, MethodBase? right) 87public static bool operator !=(MethodBase? left, MethodBase? right) => !(left == right);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Module.cs (2)
127public MethodBase? ResolveMethod(int metadataToken) => ResolveMethod(metadataToken, null, null); 129public virtual MethodBase? ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) { throw NotImplemented.ByDesign; }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\NullabilityInfoContext.cs (3)
73NullableAttributeStateParser parser = parameterInfo.Member is MethodBase method && IsPrivateOrInternalMethodAndAnnotationDisabled(method) 116private static ParameterInfo? GetMetaParameter(MethodBase metaMethod, ParameterInfo parameter) 225private bool IsPrivateOrInternalMethodAndAnnotationDisabled(MethodBase method)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\ParameterInfo.cs (1)
82args = ((MethodBase)MemberImpl).GetParametersAsSpan();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\SignatureType.cs (1)
98public sealed override MethodBase DeclaringMethod => throw new NotSupportedException(SR.NotSupported_SignatureType);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Type.cs (1)
44public virtual MethodBase? DeclaringMethod => null;
System\ActivatorImplementation.cs (3)
77ListBuilder<MethodBase> matches = new ListBuilder<MethodBase>(candidates.Length); 100MethodBase? invokeMethod;
System\Diagnostics\StackFrame.NativeAot.cs (1)
57public virtual MethodBase? GetMethod()
System\Exception.NativeAot.cs (2)
13using MethodBase = System.Reflection.MethodBase; 19public MethodBase? TargetSite
System\Reflection\DynamicInvokeInfo.cs (2)
18public MethodBase Method { get; } 56public unsafe DynamicInvokeInfo(MethodBase method, IntPtr invokeThunk)
System\Reflection\MethodBase.NativeAot.cs (4)
12public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle) => ReflectionAugments.GetMethodFromHandle(handle); 13public static MethodBase GetMethodFromHandle(RuntimeMethodHandle handle, RuntimeTypeHandle declaringType) => ReflectionAugments.GetMethodFromHandle(handle, declaringType); 17public static MethodBase GetCurrentMethod() { throw NotImplemented.ByDesign; } //Implemented by toolchain. 38internal virtual MethodBase MetadataDefinitionMethod { get { throw NotImplemented.ByDesign; } }
System\Reflection\MethodInvoker.cs (1)
30public static MethodInvoker Create(MethodBase method)
System\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
24public static bool QualifiesBasedOnParameterCount(this MethodBase methodBase, BindingFlags bindingFlags, CallingConventions callConv, Type?[] argumentTypes)
System\Reflection\Runtime\General\Dispensers.cs (1)
169internal static RuntimeThinMethodParameterInfo GetRuntimeThinMethodParameterInfo(MethodBase member, int position, QSignatureTypeHandle qualifiedParameterType, TypeContext typeContext)
System\Reflection\Runtime\General\Dispensers.NativeFormat.cs (1)
166internal static NativeFormatMethodParameterInfo GetNativeFormatMethodParameterInfo(MethodBase member, int position, ParameterHandle parameterHandle, QSignatureTypeHandle qualifiedParameterType, TypeContext typeContext)
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\Reflection\Runtime\MethodInfos\CustomMethodMapper.Nullable.cs (4)
18public static Dictionary<MethodBase, CustomMethodInvokerAction> Map 24Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>(); 107private static volatile Dictionary<MethodBase, CustomMethodInvokerAction> s_lazyMap;
System\Reflection\Runtime\MethodInfos\CustomMethodMapper.String.cs (4)
16public static Dictionary<MethodBase, CustomMethodInvokerAction> Map 22Dictionary<MethodBase, CustomMethodInvokerAction> map = new Dictionary<MethodBase, CustomMethodInvokerAction>(); 91private static volatile Dictionary<MethodBase, CustomMethodInvokerAction> s_lazyMap;
System\Reflection\Runtime\MethodInfos\IRuntimeMethodCommon.cs (1)
44void FillInMetadataDescribedParameters(ref VirtualRuntimeParameterInfoArray result, QSignatureTypeHandle[] parameterTypes, MethodBase contextMethod, TypeContext typeContext);
System\Reflection\Runtime\MethodInfos\NativeFormat\NativeFormatMethodCommon.cs (1)
59public void FillInMetadataDescribedParameters(ref VirtualRuntimeParameterInfoArray result, QSignatureTypeHandle[] typeSignatures, MethodBase contextMethod, TypeContext typeContext)
System\Reflection\Runtime\MethodInfos\RuntimeConstructedGenericMethodInfo.cs (1)
119internal sealed override MethodBase MetadataDefinitionMethod
System\Reflection\Runtime\MethodInfos\RuntimeConstructorInfo.cs (1)
112internal abstract override MethodBase MetadataDefinitionMethod { get; }
System\Reflection\Runtime\MethodInfos\RuntimeDummyMethodInfo.cs (1)
39internal sealed override MethodBase MetadataDefinitionMethod { get { throw NotImplemented.ByDesign; } }
System\Reflection\Runtime\MethodInfos\RuntimeMethodHelpers.cs (3)
30internal static RuntimeParameterInfo[] GetRuntimeParameters<TRuntimeMethodCommon>(ref TRuntimeMethodCommon runtimeMethodCommon, MethodBase contextMethod, RuntimeTypeInfo[] methodTypeArguments, out RuntimeParameterInfo returnParameter) 59internal static string ComputeToString<TRuntimeMethodCommon>(ref TRuntimeMethodCommon runtimeMethodCommon, MethodBase contextMethod, RuntimeTypeInfo[] methodTypeArguments) 94internal static string ComputeToString(MethodBase contextMethod, RuntimeTypeInfo[] methodTypeArguments, RuntimeParameterInfo[] parameters, RuntimeParameterInfo returnParameter)
System\Reflection\Runtime\MethodInfos\RuntimeNamedMethodInfo.cs (1)
153internal sealed override MethodBase MetadataDefinitionMethod
System\Reflection\Runtime\MethodInfos\RuntimePlainConstructorInfo.cs (1)
86internal sealed override MethodBase MetadataDefinitionMethod
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticConstructorInfo.cs (1)
63internal sealed override MethodBase MetadataDefinitionMethod
System\Reflection\Runtime\MethodInfos\RuntimeSyntheticMethodInfo.cs (1)
119internal sealed override MethodBase MetadataDefinitionMethod
System\Reflection\Runtime\Modules\RuntimeModule.cs (1)
108public sealed override MethodBase ResolveMethod(int metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) { throw new PlatformNotSupportedException(); }
System\Reflection\Runtime\ParameterInfos\NativeFormat\NativeFormatMethodParameterInfo.cs (1)
24private NativeFormatMethodParameterInfo(MethodBase member, int position, ParameterHandle parameterHandle, QSignatureTypeHandle qualifiedParameterTypeHandle, TypeContext typeContext)
System\Reflection\Runtime\ParameterInfos\RuntimeFatMethodParameterInfo.cs (1)
18protected RuntimeFatMethodParameterInfo(MethodBase member, int position, QSignatureTypeHandle qualifiedParameterTypeHandle, TypeContext typeContext)
System\Reflection\Runtime\ParameterInfos\RuntimeMethodParameterInfo.cs (1)
20protected RuntimeMethodParameterInfo(MethodBase member, int position, QSignatureTypeHandle qualifiedParameterTypeHandle, TypeContext typeContext)
System\Reflection\Runtime\ParameterInfos\RuntimeThinMethodParameterInfo.cs (1)
20private RuntimeThinMethodParameterInfo(MethodBase member, int position, QSignatureTypeHandle qualifiedParameterTypeHandle, TypeContext typeContext)
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfoForMethods.cs (1)
29public sealed override MethodBase DeclaringMethod
System\Reflection\Runtime\TypeInfos\NativeFormat\NativeFormatRuntimeGenericParameterTypeInfoForTypes.cs (1)
26public sealed override MethodBase DeclaringMethod
System\Reflection\Runtime\TypeInfos\RuntimeGenericParameterTypeInfo.cs (1)
43public abstract override MethodBase DeclaringMethod { get; }
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.cs (1)
126public virtual MethodBase DeclaringMethod
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.GetMember.cs (1)
71results = (type == (MemberTypes.Method | MemberTypes.Constructor)) ? new MethodBase[numMatches] : new MemberInfo[numMatches];
System\Reflection\Runtime\TypeInfos\RuntimeTypeInfo.InvokeMember.cs (1)
378MethodBase? invokeMethod = null;
System\Reflection\RuntimeMethodInfo.cs (1)
207internal abstract override MethodBase MetadataDefinitionMethod { get; }
System\RuntimeType.NativeAot.cs (1)
680public override MethodBase? DeclaringMethod => GetRuntimeTypeInfo().DeclaringMethod;
System.Private.Reflection.Execution (9)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.MappingTables.cs (2)
228MethodBase methodInfo = ExecutionDomain.GetMethod(declaringTypeHandle, methodHandle, genericMethodTypeArgumentHandles); 295MethodBase methodInfo)
Internal\Reflection\Execution\ExecutionEnvironmentImplementation.Runtime.cs (3)
40MethodBase methodBase = ReflectionExecution.GetMethodBaseFromOriginalLdftnResult(classRtMethodHandle, instanceType.TypeHandle); 80public override MethodBase GetMethodBaseFromStartAddressIfAvailable(IntPtr methodStartAddress) 102if (pertainant is MethodBase methodBase)
Internal\Reflection\Execution\MethodInvokeInfo.cs (1)
11public MethodInvokeInfo(MethodBase method, IntPtr invokeThunk)
Internal\Reflection\Execution\PayForPlayExperience\MissingMetadataExceptionCreator.cs (1)
23if (memberInfo is MethodBase method)
Internal\Reflection\Execution\ReflectionExecution.cs (2)
84public static MethodBase GetMethodBaseFromStartAddressIfAvailable(IntPtr methodStartAddress) 97public static MethodBase GetMethodBaseFromOriginalLdftnResult(IntPtr methodStartAddress, RuntimeTypeHandle declaringTypeHandle)
System.Private.Xml (3)
System\Xml\Xsl\IlGen\GenerateHelper.cs (2)
479private MethodBase? _methInfo; 521public void MethodBegin(MethodBase methInfo, ISourceLineInfo? sourceInfo, bool initWriters)
System\Xml\Xsl\IlGen\XmlILModule.cs (1)
185public static ILGenerator DefineMethodBody(MethodBase methInfo)
System.Reflection (1)
System.Reflection.cs (1)
24[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MethodBase))]
System.Reflection.Context (8)
System\Reflection\Context\CustomReflectionContext.Projector.cs (2)
127public override MethodBase? ProjectMethodBase(MethodBase? value)
System\Reflection\Context\Delegation\DelegatingModule.cs (1)
149public override MethodBase? ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
System\Reflection\Context\Delegation\DelegatingType.cs (1)
52public override MethodBase? DeclaringMethod
System\Reflection\Context\Projection\ProjectingModule.cs (1)
95public override MethodBase? ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments)
System\Reflection\Context\Projection\ProjectingType.cs (1)
39public override MethodBase? DeclaringMethod
System\Reflection\Context\Projection\Projector.cs (2)
60public abstract MethodBase? ProjectMethodBase(MethodBase? value);
System.Reflection.Emit (2)
System\Reflection\Emit\GenericTypeParameterBuilderImpl.cs (1)
87public override MethodBase? DeclaringMethod => _type.DeclaringMethod;
System\Reflection\Emit\TypeBuilderImpl.cs (1)
1234new MethodBase[totalCount] : new MemberInfo[totalCount];
System.Reflection.MetadataLoadContext (36)
System\CoreRtBridge.cs (1)
60internal static ParameterInfo[] GetParametersNoCopy(this MethodBase m)
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\Reflection\Runtime\BindingFlagSupport\Shared.cs (1)
23public static bool QualifiesBasedOnParameterCount(this MethodBase methodBase, BindingFlags bindingFlags, CallingConventions callConv, Type[] argumentTypes)
System\Reflection\TypeLoading\Constructors\RoConstructor.cs (1)
83MethodBase IRoMethodBase.MethodBase => this;
System\Reflection\TypeLoading\General\Ecma\EcmaResolver.cs (1)
180public static T ResolveMethod<T>(this MethodDefinitionHandle handle, EcmaModule module, in TypeContext typeContext) where T : MethodBase
System\Reflection\TypeLoading\MethodBase\IRoMethodBase.cs (1)
10MethodBase MethodBase { get; }
System\Reflection\TypeLoading\Methods\RoMethod.cs (1)
127MethodBase IRoMethodBase.MethodBase => this;
System\Reflection\TypeLoading\Modules\RoModule.cs (1)
88public sealed override MethodBase ResolveMethod(int metadataToken, Type[]? genericTypeArguments, Type[]? genericMethodArguments) => throw new NotSupportedException(SR.NotSupported_ResolvingTokens);
System\Reflection\TypeLoading\RuntimeTypeInfo.GetMember.cs (1)
62results = (type == (MemberTypes.Method | MemberTypes.Constructor)) ? new MethodBase[numMatches] : new MemberInfo[numMatches];
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericMethodParameterType.cs (1)
25public sealed override MethodBase DeclaringMethod => GetRoDeclaringMethod();
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericParameterType.cs (1)
69public abstract override MethodBase? DeclaringMethod { get; }
System\Reflection\TypeLoading\Types\Ecma\EcmaGenericTypeParameterType.cs (1)
28public sealed override MethodBase? DeclaringMethod => null;
System\Reflection\TypeLoading\Types\RoConstructedGenericType.cs (1)
103public sealed override MethodBase DeclaringMethod => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
System\Reflection\TypeLoading\Types\RoDefinitionType.cs (1)
233public sealed override MethodBase DeclaringMethod => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
System\Reflection\TypeLoading\Types\RoFunctionPointerType.cs (1)
172public sealed override MethodBase DeclaringMethod => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
System\Reflection\TypeLoading\Types\RoHasElementType.cs (1)
51public sealed override MethodBase DeclaringMethod => throw new InvalidOperationException(SR.Arg_NotGenericParameter);
System\Reflection\TypeLoading\Types\RoModifiedType.cs (1)
150public override MethodBase? DeclaringMethod => throw new NotSupportedException(SR.NotSupported_ModifiedType);
System\Reflection\TypeLoading\Types\RoStubType.cs (1)
45public sealed override MethodBase DeclaringMethod => throw null!;
System\Reflection\TypeLoading\Types\RoType.cs (1)
141public abstract override MethodBase? DeclaringMethod { get; }
System.Runtime (1)
src\runtime\artifacts\obj\System.Runtime\Release\net11.0\System.Runtime.Forwards.cs (1)
489[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Reflection.MethodBase))]
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (1)
214MethodInfo? method = MethodBase.GetMethodFromHandle(methodHandle) as MethodInfo;
System.Security.Cryptography (4)
System\Security\Cryptography\CryptoConfig.cs (4)
441MethodBase[] cons = retvalType.GetConstructors(ConstructorDefault); 449List<MethodBase> candidates = new List<MethodBase>(); 452MethodBase con = cons[i];
System.ServiceModel.Primitives (14)
Extensions\ReflectionExtensions.cs (1)
222public static RuntimeMethodHandle MethodHandle(this MethodBase mb)
System\ServiceModel\Channels\MethodCall.cs (2)
24public MethodCall(MethodBase methodBase, object[] args) : this(args) 31public MethodBase MethodBase { get; private set; }
System\ServiceModel\Channels\ServiceChannelProxy.cs (8)
56MethodBase method = methodCall.MethodBase; 397MethodBase targetMethod = methodCall.MethodBase; 427public bool TryGetMethodData(MethodBase method, out MethodData methodData) 446private static int FindMethod(MethodData[] methodDatas, MethodBase methodToFind) 450MethodBase method = methodDatas[i].MethodBase; 502public MethodData(MethodBase methodBase, MethodType methodType) 507public MethodData(MethodBase methodBase, MethodType methodType, ProxyOperationRuntime operation) 514public MethodBase MethodBase { get; }
System\ServiceModel\Dispatcher\IClientOperationSelector.cs (1)
13string SelectOperation(MethodBase method, object[] parameters);
System\ServiceModel\Dispatcher\ImmutableClientRuntime.cs (1)
167internal ProxyOperationRuntime GetOperation(MethodBase methodBase, object[] args, out bool canCacheResult)
System\ServiceModel\Dispatcher\OperationSelectorBehavior.cs (1)
82public string SelectOperation(MethodBase method, object[] parameters)
System.Text.Json (1)
System\Text\Json\Serialization\Metadata\JsonParameterInfo.cs (1)
100if (parameterInfo is null && MatchingProperty.DeclaringTypeInfo.ConstructorAttributeProvider is MethodBase ctorInfo)
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomSerializerBase.cs (1)
1944if (descriptor.MemberInfo is MethodBase mi)
System.Xaml (12)
System\Xaml\Runtime\ClrObjectRuntime.cs (4)
126if (members is not MethodBase[] methods) 128methods = new MethodBase[members.Length]; 139protected MethodBase BindToMethod(BindingFlags bindingFlags, MethodBase[] candidates, object[] args)
System\Xaml\Runtime\DynamicMethodRuntime.cs (4)
58private Dictionary<MethodBase, FactoryDelegate> _factoryDelegates; 89private Dictionary<MethodBase, FactoryDelegate> FactoryDelegates 95_factoryDelegates = new Dictionary<MethodBase, FactoryDelegate>(); 357private LocalBuilder[] LoadArguments(ILGenerator ilGenerator, MethodBase method)
System\Xaml\Schema\TypeReflector.cs (1)
162internal static bool IsPublicOrInternal(MethodBase method)
System\Xaml\XamlObjectReader.cs (2)
1214MethodBase method = memberInfo as MethodBase;
System\Xaml\XamlType.cs (1)
674MethodBase result = Type.DefaultBinder.SelectMethod(ConstructorBindingFlags, ctorArray, paramTypes, null);
testhost (2)
parent\testhost.x86\TestHostTraceListener.cs (2)
51MethodBase? method = null; 55var m = f?.GetMethod();
testhost.arm64 (2)
parent\testhost.x86\TestHostTraceListener.cs (2)
51MethodBase? method = null; 55var m = f?.GetMethod();
testhost.x86 (2)
TestHostTraceListener.cs (2)
51MethodBase? method = null; 55var m = f?.GetMethod();
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
345MethodBase mb = sf.GetMethod();