ProtoFlux:Box: Difference between revisions

From Resonite Wiki
Stub
add unbox to see also
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Allows converting a input instance of a ValueType to a Object representation.
{{#Invoke:ProtoFlux|GenerateUI
{{Stub}}
|Name=Box
|Category=Core
|Inputs=
[
{"Name": "Box", "Type":"Dummy"}
]
|Outputs=
[
{"Name": "*", "Type": "Object"}
]
|}}
 
The '''Box<T>''' node takes in a [[value type]] and converts it to an [[Type:Object|object]].
 
== Inputs ==
 
=== Box (Generic) ===
 
The value to box into an object.
 
== Outputs ==
 
=== * ([[Type:Object|Object]]) ===
 
The converted value as an object.
 
== See also ==
 
* [[ProtoFlux:Unbox]] for unboxing objects into their underlying type
* [https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/boxing-and-unboxing Microsoft documentation on C# boxing and unboxing]
 
[[Category:ProtoFlux:Core]]

Latest revision as of 16:23, 18 April 2025

Box
Box
*
Core

The Box<T> node takes in a value type and converts it to an object.

Inputs

Box (Generic)

The value to box into an object.

Outputs

* (Object)

The converted value as an object.

See also