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

API Browser

Type extension

ConstructorReflectionExtensions

extension ConstructorReflectionExtensions for ConstructorInfo

Module: System.Runtime.Reflection
Assembly: System.Runtime.dll

Development execution extensions for retained runtime constructor descriptors.

Receiver

ConstructorInfo

Remarks

Import System.Runtime.Reflection. Supports public constructors on concrete nongeneric reference classes and value records, including admitted union cases and carriers.

Methods

2 items
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