Open sandboxFocus

Method OfCompatibleSignature

OfCompatibleSignature(IMethodCollection, string, IReadOnlyList<Type?>?, bool?)

Gets the list of methods with signatures compatible with specified constraints.

Declaration
public static IEnumerable<IMethod> OfCompatibleSignature(this IMethodCollection methods, string name, IReadOnlyList<Type?>? argumentTypes, bool? isStatic = false)
Parameters
Type Name Description
IMethodCollection methods

A collection of methods.

string name

Name of the method.

IReadOnlyList<Type> argumentTypes

Constraint on reflection types of arguments. Nullitems in the list signify any type.

bool? isStatic

Constraint on staticity of the method.

Returns
Type Description
IEnumerable<IMethod>

Enumeration of methods matching specified constraints.

OfCompatibleSignature(IMethodCollection, string, IReadOnlyList<IType?>?, IReadOnlyList<RefKind?>?, bool?)

Gets the list of methods with signatures compatible with specified constraints.

Declaration
public static IEnumerable<IMethod> OfCompatibleSignature(this IMethodCollection methods, string name, IReadOnlyList<IType?>? argumentTypes, IReadOnlyList<RefKind?>? refKinds = null, bool? isStatic = false)
Parameters
Type Name Description
IMethodCollection methods

A collection of methods.

string name

Name of the method.

IReadOnlyList<IType> argumentTypes

Constraint on types of arguments. Nullitems in the list signify any type.

IReadOnlyList<RefKind?> refKinds

Constraint on reference kinds of arguments. Nullitems in the list signify any reference kind.

bool? isStatic

Constraint on staticity of the method.

Returns
Type Description
IEnumerable<IMethod>

Enumeration of methods matching specified constraints.