MethodCollectionExtensions.OfCompatibleSignature Method
OfCompatibleSignature(IMethodCollection, String, IReadOnlyList<Type>, Nullable<Boolean>)
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, Nullable<bool> isStatic)
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. |
Nullable<Boolean> | isStatic | Constraint on staticity of the method. |
Returns
Type | Description |
---|---|
IEnumerable<IMethod> | Enumeration of methods matching specified constraints. |
OfCompatibleSignature(IMethodCollection, String, IReadOnlyList<IType>, IReadOnlyList<Nullable<RefKind>>, Nullable<Boolean>)
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<Nullable<RefKind>> refKinds = null, Nullable<bool> isStatic)
Parameters
Type | Name | Description |
---|---|---|
IMethodCollection | methods | A collection of methods. |
String | name | Name of the method. |
IReadOnlyList<IType> | argumentTypes | Constraint on types of arguments. |
IReadOnlyList<Nullable<RefKind>> | refKinds | Constraint on reference kinds of arguments. |
Nullable<Boolean> | isStatic | Constraint on staticity of the method. |
Returns
Type | Description |
---|---|
IEnumerable<IMethod> | Enumeration of methods matching specified constraints. |