OfExactSignature(IMethodCollection, string, IReadOnlyList<IType>, IReadOnlyList<RefKind>?, bool?)
Gets a method that exactly matches the specified signature.
Declaration
public static IMethod? OfExactSignature(this IMethodCollection methods, string name, IReadOnlyList<IType> parameterTypes, IReadOnlyList<RefKind>? refKinds = null, bool? isStatic = null)
Parameters
Type | Name | Description |
---|---|---|
IMethodCollection | methods | A collection of methods. |
string | name | Name of the method. |
IReadOnlyList<IType> | parameterTypes | List of parameter types. |
IReadOnlyList<RefKind> | refKinds | List of parameter reference kinds, or |
bool? | isStatic | Staticity of the method. |
Returns
Type | Description |
---|---|
IMethod | A IMethod that matches the given signature. |
OfExactSignature(IMethodCollection, IMethod, bool)
Gets a method that exactly matches the signature of the specified method.
Declaration
public static IMethod? OfExactSignature(this IMethodCollection methods, IMethod signatureTemplate, bool matchIsStatic = true)
Parameters
Type | Name | Description |
---|---|---|
IMethodCollection | methods | A collection of methods. |
IMethod | signatureTemplate | Method signature of which to should be considered. |
bool | matchIsStatic | Value indicating whether the staticity of the method should be matched. |
Returns
Type | Description |
---|---|
IMethod | A IMethod that matches the given signature. |
OfExactSignature(IIndexerCollection, IIndexer)
Gets an indexer that exactly matches the signature of the specified method.
Declaration
public static IIndexer? OfExactSignature(this IIndexerCollection indexers, IIndexer signatureTemplate)
Parameters
Type | Name | Description |
---|---|---|
IIndexerCollection | indexers | A collection of indexers. |
IIndexer | signatureTemplate | Indexer signature of which to should be considered. |
Returns
Type | Description |
---|---|
IIndexer | A IMethod that matches the given signature. |