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

API Browser

Method

IsAssignable

static func IsAssignable<TSource, TTarget>() -> bool

Declaring type: RuntimeHelpers
Module: System.Runtime.CompilerServices
Assembly: System.Runtime.dll
Source file: RuntimeHelpers.rvn

Tests assignment from TSource to TTarget using declared types, without creating type descriptors. Used by generated generic value semantics; does not inspect an object's runtime type.

Return value

Boolean