Skip to content

GetMethodInfo Method ​

Definition ​

  • Namespace: JASE.Expressions.Models
  • Assembly: JASE.Expressions.dll

MethodInfo GetMethodInfo(string methodName, Type[] types, bool matchParameterTypes = null) ​

csharp
MethodInfo GetMethodInfo(string methodName, Type[] types, bool matchParameterTypes = null)

Looks up a method by name and optionally by exact parameter signature.

Parameters ​

NameDescription
matchParameterTypesIf true, all parameter types must match exactly. If false, only arity (number of parameters) must match.
methodNameThe name of the method to search for.
typesOptional parameter types for signature matching.

Returns ​

The resolved MethodInfo if found; otherwise null.