TypeExt.IsValidCast Method

Checks whether the type defined by from can be casted to the type defined by [!:to].

Namespace: UltimateXR.Extensions.System
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static bool IsValidCast(
	Type from,
	Type to
)

Parameters

 

from
Type: System.Type
Source type
to
Type: System.Type
Destination type

Return Value

Type: Boolean
Whether it can be casted

See Also

Reference

TypeExt Class
UltimateXR.Extensions.System Namespace