For make compatibale with return value and exception message or R# object wrapper The .NET api is usually declare as returns object value, then we could use this attribute to let user known the actual returns type of the target api function
RApiReturnAttribute
01 Syntax
SMRUCC.Rsharp.Runtime.Interop.RApiReturnAttribute
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 3 | Create a type reference via the R# type code enumeration flag for indicate this function return value. |
| GetClass | 1 | Get R# runtime type definition |
| ToString | 1 | |
| GetActualReturnType | 1 | |
| MeasureRReturnInfo | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| isClassGraph | 1 | Do we can create a RS4ClassGraph from the attribute values? |
| uuid | 1 | the unique reference id of current generated R# runtime IRType |
| returnTypes | 1 | |
| fields | 1 | |
| unionType | 1 |
04 Members
#ctor(
Type())this function returns a typescript language liked union type
Parameters
| Name | Type | Description |
|---|---|---|
type | Type() | - |
#ctor(TypeCodes)
Create a type reference via the R# type code enumeration flag for indicate this function return value.
Parameters
| Name | Type | Description |
|---|---|---|
type | TypeCodes | - |
#ctor(
String())this function returns a R# ApiArgumentHelpers.list() with these specific first level slot keys
Parameters
| Name | Type | Description |
|---|---|---|
slots | String() | - |
GetClass
Get R# runtime type definition
Returns
this function returns nothing if not RApiReturnAttribute.isClassGraph.
isClassGraph
Do we can create a RS4ClassGraph from the attribute values?
uuid
the unique reference id of current generated R# runtime IRType
returnTypes
fields
unionType
ToString()
GetActualReturnType(
MethodInfo)MeasureRReturnInfo(
MethodInfo)