Open sandboxFocus

Class ConstructorCollectionExtensions

Provides extension methods to the IConstructorCollection interface.

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

Methods

Name Description
OfCompatibleSignature(IConstructorCollection, IReadOnlyList<IType?>?, IReadOnlyList<RefKind?>?)

Gets a list of constructors with signatures compatible with specified constraints given using the Metalama API.

OfCompatibleSignature(IConstructorCollection, IReadOnlyList<Type?>?)

Gets a list of constructors with signatures compatible with specified constraints given using the System.Reflection API.

OfExactSignature(IConstructorCollection, IConstructor)

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

OfExactSignature(IConstructorCollection, IReadOnlyList<IType>, IReadOnlyList<RefKind>?)

Gets a constructor that exactly matches the specified signature given using the System.Reflection API.