clrGet: Gets the value of a field or property of an object or class

Description Usage Arguments Value Examples

Description

Gets the value of a field or property of an object or class

Usage

1
clrGet(objOrType, name)

Arguments

objOrType

a CLR object, or type name, possibly namespace and assembly qualified type name, e.g. 'My.Namespace.MyClass,MyAssemblyName'.

name

the name of a field/property of the object

Value

an object resulting from the call. May be a CLR object, or a native R object for common types. Can be NULL.

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
library(rClr)
testClassName <- "Rclr.TestObject";
testObj <- clrNew(testClassName)
clrReflect(testObj)
clrGet(testObj, 'FieldIntegerOne')
clrGet(testClassName, 'StaticPropertyIntegerOne')

## End(Not run)

jmp75/rClr documentation built on June 11, 2019, 6:45 p.m.