TypeInfo.GetMethod Method

Definition

Overloads

GetMethod(String)

C#
public System.Reflection.MethodInfo GetMethod(string name);

Parameters

name
String

Returns

Applies to

.NET Core 1.1 and other versions
Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetMethod(String, BindingFlags)

C#
public System.Reflection.MethodInfo GetMethod(string name, System.Reflection.BindingFlags bindingAttr);

Parameters

name
String
bindingAttr
BindingFlags

Returns

Applies to

.NET Core 1.1 and other versions
Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetMethod(String, Type[])

C#
public System.Reflection.MethodInfo GetMethod(string name, Type[] types);

Parameters

name
String
types
Type[]

Returns

Applies to

.NET Core 1.1 and other versions
Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6

GetMethod(String, Type[], ParameterModifier[])

C#
public System.Reflection.MethodInfo GetMethod(string name, Type[] types, System.Reflection.ParameterModifier[] modifiers);

Parameters

name
String
types
Type[]
modifiers
ParameterModifier[]

Returns

Applies to

.NET Core 1.1 and other versions
Product Versions
.NET Core 1.0, Core 1.1
.NET Standard 1.5, 1.6