Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Interface

ConstructorInfo

sealed interface ConstructorInfo

Module: System.Introspection
Assembly: System.Runtime.dll
Source file: Descriptors.rvn

Inherits: MemberInfo
Closed hierarchy: only the permitted direct subtypes can extend this type.
Permitted direct subtypes: RuntimeConstructorInfo
Part of closed hierarchy: MemberInfo

Development metadata contract describing one declared constructor. Execution is separate from introspection.

Remarks

MemberInfo supplies Name, DeclaringType, Module and MetadataToken. No ReturnType. Constructors are not inherited; update exhaustive MemberInfo matches for this new case.

Properties

9 items
DeclaringType: Optional<TypeInfo> Gets the declaring type, or None for a top-level member. Inherited from MemberInfo.DeclaringType · Defined by MemberInfo.DeclaringType · Required implementation (no default).
DefinitionIndex: int Gets the module function definition index, not its position in a filtered query. Defined by ConstructorInfo.DefinitionIndex · Required implementation (no default).
IsAssembly: bool Gets whether the original constructor has assembly-only access. Defined by ConstructorInfo.IsAssembly · Required implementation (no default).
IsPrivate: bool Gets whether the original constructor is private. Defined by ConstructorInfo.IsPrivate · Required implementation (no default).
IsPublic: bool Gets whether the original constructor is public. Defined by ConstructorInfo.IsPublic · Required implementation (no default).
IsStatic: bool Gets whether this is the runtime-owned type initializer. Inspection does not execute it and reflection cannot invoke it directly. Defined by ConstructorInfo.IsStatic · Required implementation (no default).
MetadataToken: Optional<int> Gets Some(token) for available declaration metadata, or None for a synthesized member. Tokens are scoped to their defining module. Inherited from MemberInfo.MetadataToken · Defined by MemberInfo.MetadataToken · Required implementation (no default).
Module: Optional<ModuleInfo> Gets Some(module) for a declared member, or None when no defining module exists. Inherited from MemberInfo.Module · Defined by MemberInfo.Module · Required implementation (no default).
Name: string Gets the declared or synthesized member name. Inherited from MemberInfo.Name · Defined by MemberInfo.Name · Required implementation (no default).

Methods

4 items
GetCustomAttributesData() -> Sequence<CustomAttributeData> Gets directly declared retained attribute data without executing attribute constructors. Inherited from MemberInfo.GetCustomAttributesData · Defined by MemberInfo.GetCustomAttributesData · Required implementation (no default).
GetParameters() -> Sequence<ParameterInfo> Describes constructor parameters in declaration order. Defined by ConstructorInfo.GetParameters · Required implementation (no default).
Extension member: Invoke(arguments: Sequence<object?>) -> Result<object, ReflectionError> Copies a sequence of arguments and invokes the retained constructor. Extension from ConstructorReflectionExtensions.Invoke
Extension member: Invoke(arguments: ...object?[]) -> Result<object, ReflectionError> Invokes this exact constructor without overload selection. Extension from ConstructorReflectionExtensions.Invoke