Share via


TypeBuilder.IsAssignableFrom Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Determines whether an instance of the current Type can be assigned from an instance of the specified Type.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Overrides Function IsAssignableFrom ( _
    c As Type _
) As Boolean
public override bool IsAssignableFrom(
    Type c
)

Parameters

  • c
    Type: System.Type
    The Type to compare with the current Type.

Return Value

Type: System.Boolean
true if the c parameter and the current Type represent the same type, or if the current Type is in the inheritance hierarchy of c, or if the current Type is an interface that c supports. false if none of these conditions are the case, or if c is a null reference (Nothing in Visual Basic).

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.