C# Class Microsoft.Scripting.Utils.TypeUtils

Show file Open project: jschementi/iron

Public Properties

Property Type Description
ComObjectType System.Type

Public Methods

Method Description
IsComObject ( object obj ) : bool
IsComObjectType ( Type type ) : bool
IsNested ( this t ) : bool

Private Methods

Method Description
AreAssignable ( Type dest, Type src ) : bool
AreEquivalent ( Type t1, Type t2 ) : bool
AreReferenceAssignable ( Type dest, Type src ) : bool
CanAssign ( Type to, Expression from ) : bool
CanAssign ( Type to, Type from ) : bool
CanCompareToNull ( Type type ) : bool
GetConstantType ( Type type ) : Type
GetNonNullableType ( Type type ) : Type
GetNumericConversionOrder ( TypeCode code, int &x, int &y ) : bool

Returns a numerical code of the size of a type. All types get both a horizontal and vertical code. Types that are lower in both dimensions have implicit conversions to types that are higher in both dimensions.

HasBuiltinEquality ( Type left, Type right ) : bool
IsArithmetic ( Type type ) : bool
IsBool ( Type type ) : bool
IsConvertible ( Type type ) : bool
IsFloatingPoint ( Type type ) : bool
IsGeneric ( Type type ) : bool
IsImplicitlyConvertible ( int fromX, int fromY, int toX, int toY ) : bool
IsIntegerOrBool ( Type type ) : bool
IsNullableType ( Type type ) : bool
IsNumeric ( Type type ) : bool
IsNumeric ( TypeCode typeCode ) : bool
IsUnsignedInt ( Type type ) : bool
NullVsNullable ( Type left, Type right ) : bool

Method Details

IsComObject() public static method

public static IsComObject ( object obj ) : bool
obj object
return bool

IsComObjectType() public static method

public static IsComObjectType ( Type type ) : bool
type System.Type
return bool

IsNested() public static method

public static IsNested ( this t ) : bool
t this
return bool

Property Details

ComObjectType public static property

public static Type,System ComObjectType
return System.Type