Provides extension methods to the IMethodCollection interface.
Namespace: Metalama.Framework.Code
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class MethodCollectionExtensionsMethods
| Name | Description |
|---|---|
| OfCompatibleSignature(IMethodCollection, string, IReadOnlyList<IType>, IReadOnlyList<RefKind>?, bool?, ConversionKind) | Gets a method that matches the specified signature using the specified ConversionKind for parameter type comparison. Unlike OfExactSignature(IMethodCollection, string, IReadOnlyList<IType>, IReadOnlyList<RefKind>?, bool?) which requires identical types, this overload allows specifying a ConversionKind such as Default for implicit conversions. |
| OfCompatibleSignature(IMethodCollection, string, IReadOnlyList<IType?>?, IReadOnlyList<RefKind?>?, bool?) | Gets the list of methods with signatures compatible with specified constraints. |
| OfCompatibleSignature(IMethodCollection, string, IReadOnlyList<Type?>?, bool?) | 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(IIndexerCollection, IReadOnlyList<IType>, IReadOnlyList<RefKind>?) | Gets an indexer that exactly matches the specified signature. |
| OfExactSignature(IMethodCollection, IMethod, bool) | Gets a method that exactly matches the signature of the specified method. |
| OfExactSignature(IMethodCollection, string, IReadOnlyList<IType>, IReadOnlyList<RefKind>?, bool?) | Gets a method that exactly matches the specified signature. |
| OfExactSignature(IMethodCollection, string, IReadOnlyList<Type>, bool?) | Gets a method that exactly matches the specified signature given using the |
| OfExactSignature(IMethodCollection, string, int, IReadOnlyList<IType>, IReadOnlyList<RefKind>?, bool?) | Gets a method that exactly matches the specified signature, including the number of generic type parameters. |
| OfKind(IMethodCollection, MethodKind) | Gets the list of methods of a given MethodKind (such as Operator or Default. |