nuget server logo nuget api documents
↑

API Docs / REnv / RTypeExtensions

RTypeExtensions

Full name SMRUCC.Rsharp.Runtime.RTypeExtensions Assembly REnv Members 8

01 Syntax

SMRUCC.Rsharp.Runtime.RTypeExtensions

02 Methods

NameOverloadsSummary
GetRTypeCode 2 Get R type code from the type constraint expression value.
IsPrimitive 2 It is R# primitive type? (bool, double, int, string, list?)
IsNumeric 1 Target R type is a kind of numeric type?
GetType 2 Mapping R# TypeCodes to .net CLR object type

03 Fields

NameOverloadsSummary
parseTypeCode 1 Converts the input string text to value TypeCodes

04 Members

method GetRTypeCode #
GetRTypeCode(String)

Get R type code from the type constraint expression value.

Parameters
NameTypeDescription
type$String

-

method GetRTypeCode overload 2 #
GetRTypeCode(Type)

VB.NET CLR object type to R type code mapping

Parameters
NameTypeDescription
typeType

-

method IsPrimitive overload 2 #
IsPrimitive(Type, Boolean)

It is R# primitive type?

Parameters
NameTypeDescription
typeType

-

method IsPrimitive #
IsPrimitive(TypeCodes, Boolean)

It is R# primitive type? (bool, double, int, string, list?)

Parameters
NameTypeDescription
typeTypeCodes

-

method IsNumeric #
IsNumeric(TypeCodes)

Target R type is a kind of numeric type?

Parameters
NameTypeDescription
typeTypeCodes

-

Returns

this function returns true if the type is TypeCodes.double or TypeCodes.integer

method GetType overload 2 #
GetType(TypeCode)

Mapping CLR TypeCode to .net CLR object type

Parameters
NameTypeDescription
typeTypeCode

-

method GetType #
GetType(TypeCodes, Boolean)

Mapping R# TypeCodes to .net CLR object type

Parameters
NameTypeDescription
typeTypeCodes

-

Returns

the function will returns nothing if the type mapping is not valid

field parseTypeCode #
parseTypeCode

Converts the input string text to value TypeCodes