OfExactSignature(IConstructorCollection, IReadOnlyList<IType>, IReadOnlyList<RefKind>?)
Gets a constructor that exactly matches the specified signature given using the System.Reflection API.
Declaration
public static IConstructor? OfExactSignature(this IConstructorCollection constructors, IReadOnlyList<IType> parameterTypes, IReadOnlyList<RefKind>? refKinds = null)Parameters
| Type | Name | Description |
|---|---|---|
| IConstructorCollection | constructors | A collection of constructors. |
| IReadOnlyList<IType> | parameterTypes | List of parameter types. |
| IReadOnlyList<RefKind> | refKinds | List of parameter reference kinds, or |
Returns
| Type | Description |
|---|---|
| IConstructor | A IConstructor that matches the given signature. |
OfExactSignature(IConstructorCollection, IReadOnlyList<Type>)
Gets a constructor that exactly matches the specified signature given using the System.Reflection API.
By-ref reflection types (IsByRef == true) do not match any parameter.
Non-by-ref reflection types match parameters with None or In.
Declaration
public static IConstructor? OfExactSignature(this IConstructorCollection constructors, IReadOnlyList<Type> parameterTypes)Parameters
| Type | Name | Description |
|---|---|---|
| IConstructorCollection | constructors | A collection of constructors. |
| IReadOnlyList<Type> | parameterTypes | List of parameter types as reflection Type objects. |
Returns
| Type | Description |
|---|---|
| IConstructor | A IConstructor that matches the given signature. |
OfExactSignature(IConstructorCollection, IConstructor)
Gets a constructor that exactly matches the signature of the specified method.
Declaration
public static IConstructor? OfExactSignature(this IConstructorCollection constructors, IConstructor signatureTemplate)Parameters
| Type | Name | Description |
|---|---|---|
| IConstructorCollection | constructors | A collection of constructors. |
| IConstructor | signatureTemplate | Constructor signature of which to should be considered. |
Returns
| Type | Description |
|---|---|
| IConstructor | A IConstructor that matches the given signature. |