Method OfExactSignature
OfExactSignature(IMethodCollection, String, IReadOnlyList<IType>, IReadOnlyList<RefKind>, Nullable<Boolean>)
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, Nullable<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 |
Nullable<Boolean> | isStatic | Staticity of the method. |
Returns
Type | Description |
---|---|
IMethod | A IMethod that matches the given signature. |
OfExactSignature(IMethodCollection, IMethod, Boolean)
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. |
Boolean | 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. |