CLRInterop Class

The ClrInterop class is a utility class that provides functionality for type marshaling and exception handling.

All of the methods are static, so no instantiation of the class is needed.


class ClrInterop extends Object

Called

Method

Description

CLRInterop::getAnyTypeForObject Method

Converts a common language runtime (CLR) object to a value of the X++ type anytype.

CLRInterop::getLastException Method

Returns the most recent common language runtime (CLR) exception.

CLRInterop::getObjectForAnyType Method

Converts a value of the X++ anytype data type to a value of the CLRObject data type.

CLRInterop::isInitialized Method

Confirms that the specified ClrObject instance has been initialized.

CLRInterop::isNull Method

Confirms whether the specified CLRObject instance is set to null.

CLRInterop.new Method

Creates an instance of the CLRInterop class.

CLRInterop::Null Method

Returns a common language runtime (CLR) data type with a value of null.

CLRInterop::parseClrEnum Method

Converts the string representation of the name or numeric value of one or more enumerated constants to an equivalent CLRObject instance.

CLRInterop::staticInvoke Method

Calls a static method on a common language runtime (CLR) data type.

Community Additions

ADD
Show: