MetalamaAPI documentationAspect APIMetalama.​Framework.​CodeMethod­Collection­Extensions
Open sandboxFocus

MethodCollectionExtensions Class

Provides extension methods to the IMethodCollection interface.

Inheritance
System.Object
MethodCollectionExtensions
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class MethodCollectionExtensions : Object

Methods

Name Description
OfCompatibleSignature(IMethodCollection, String, IReadOnlyList<IType>, IReadOnlyList<Nullable<RefKind>>, Nullable<Boolean>)

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

OfCompatibleSignature(IMethodCollection, String, IReadOnlyList<Type>, Nullable<Boolean>)

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

OfExactSignature(IIndexerCollection, IIndexer)

Gets an indexer that exactly matches the signature of the specified method.

OfExactSignature(IMethodCollection, IMethod, Boolean)

Gets a method that exactly matches the signature of the specified method.

OfExactSignature(IMethodCollection, String, IReadOnlyList<IType>, IReadOnlyList<RefKind>, Nullable<Boolean>)

Gets a method that exactly matches the specified signature.

OfKind(IMethodCollection, MethodKind)

Gets the list of methods of a given MethodKind (such as Operator or Default.