Module.GetMethodImpl Method

Definition

Returns the method implementation in accordance with the specified criteria.

C#
protected virtual System.Reflection.MethodInfo? GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder? binder, System.Reflection.CallingConventions callConvention, Type[]? types, System.Reflection.ParameterModifier[]? modifiers);
C#
protected virtual System.Reflection.MethodInfo GetMethodImpl(string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Reflection.CallingConventions callConvention, Type[] types, System.Reflection.ParameterModifier[] modifiers);

Parameters

name
String

The method name.

bindingAttr
BindingFlags

One of the BindingFlags bit flags used to control the search.

binder
Binder

An object that implements Binder, containing properties related to this method.

callConvention
CallingConventions

The calling convention for the method.

types
Type[]

The parameter types to search for.

modifiers
ParameterModifier[]

An array of parameter modifiers used to make binding work with parameter signatures in which the types have been modified.

Returns

A MethodInfo object containing implementation information as specified, or null if the method does not exist.

Exceptions

types is null.

Applies to

Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

See also