CSharpTest.Net
IsAssignable(Type,Type) Method
See Also  Send Feedback Download Help File
CSharpTest.Net.Library Assembly > (Global) Namespace > Check Class > IsAssignable Method : IsAssignable(Type,Type) Method

toType
fromType

Glossary Item Box

Throws ArgumentException if the type fromType cannot be assigned to variable of type toType

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Sub IsAssignable( _
   ByVal toType As Type, _
   ByVal fromType As Type _
) 
C# 
public static void IsAssignable( 
   Type toType,
   Type fromType
)

Parameters

toType
fromType

Exceptions

ExceptionDescription
System.ArgumentExceptionThe exception that is thrown when one of the arguments provided to a method is not valid.

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys