box

Summary

Boxes an external object to give it an internal type.

Usage

public BoxedExternal box(external object)

Returns

The internally-typed boxed representation of the external object.

Parameters

object

The external object to box.

Description

Boxes an external object to give it an internal type.

Examples

Basic Usage
1
2
3
4
5
import System;
 
var obj = {};
BoxedExternal boxed = new BoxedExternal();
boxed.box(obj);
Changing the boxed object at runtime
1
2
3
4
5
6
import System;
 
var obj1 = {}, obj2 = {};
BoxedExternal boxed = new BoxedExternal();
boxed.box(obj1);
boxed.box(obj2);

Share

HTML | BBCode | Direct Link