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

API Browser

Type extension

TypeReflectionExtensions

extension TypeReflectionExtensions for TypeInfo

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

Checked construction on runtime-backed type descriptors.

Receiver

TypeInfo

Remarks

Development API. Import System.Runtime.Reflection to use these extensions.

Methods

3 items
Extension member: CreateInstance(arguments: ...object?[]) -> Result<object, ReflectionError> Creates the described type using a matching public constructor. Extension from TypeReflectionExtensions.CreateInstance
Extension member: CreateInstance() -> Result<object, ReflectionError> Invokes the public parameterless constructor of a concrete nongeneric reference class. Extension from TypeReflectionExtensions.CreateInstance
Extension member: CreateInstance<T>(arguments: ...object?[]) -> Result<T, ReflectionError> Creates the described type and returns a compatible T view. Extension from TypeReflectionExtensions.CreateInstance