Stub |
add unbox to see also |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{#Invoke:ProtoFlux|GenerateUI | |||
|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
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
- ProtoFlux:Unbox for unboxing objects into their underlying type
- Microsoft documentation on C# boxing and unboxing