Arbor 3: FSM & BT Graph Editor 3.7.2

Static Public Member Functions | List of all members
DynamicUtility Class Reference

Dynamic type utility class More...

## Static Public Member Functions
static object | Cast (object obj, System.Type type)
| Cast the object. More...
static object | GetDefault (System.Type type)
| Returns the default value of type. More...
static object | Rebox (object obj)
| Rebox object and copy the value. More...

## Detailed Description

Dynamic type utility class

## Member Function Documentation

## ◆ Cast()

static object Cast | ( | object | obj,
|  | System.Type | type
| ) |  |
| static

Cast the object.

Parameters

  obj | The object to cast
  type | Casting type

Returns
  Casted value

## ◆ GetDefault()

static object GetDefault | ( | System.Type | type | ) |
| static

Returns the default value of type.

Parameters

  type | Default value type

Returns
  Default value

## ◆ Rebox()

static object Rebox | ( | object | obj | ) |
| static

Rebox object and copy the value.

Parameters

  obj | object

Returns
  Reboxed object

If it is not a value type, it is not copied.