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

ConstructorCollectionExtensions Class

Provides extension methods to the IConstructorCollection interface.

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

Methods

Name Description
OfCompatibleSignature(IConstructorCollection, IReadOnlyList<IType>, IReadOnlyList<Nullable<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.