ProtoFlux:Unbox: Difference between revisions

From Resonite Wiki
Category
m link
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Allows casting a input [[Type:Object|Object (Type)]] to a certain [[Type:Value|ValueType]]. Only works if the input Object is actually storing a instance of ValueType.
{{#Invoke:ProtoFlux|GenerateUI
{{Stub}}
|Name=Unbox
|Category=Core
|Inputs=
[
{"Name":"Input", "Type":"Object"}
]
|Outputs=
[
{"Name":"*", "Type":"Dummy"}
]
|}}
 
The '''Unbox<T>''' node converts a boxed [[Type:object|object]] back into its underlying [[value type]].
 
== Inputs ==
 
=== Input ([[Type:Object|Object]]) ===
 
The object to unbox.
 
== Outputs ==
 
=== * (Generic) ===
 
The unboxed value of the object.
 
== See also ==
 
* [[ProtoFlux:Box]] for boxing value types into objects
* [https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/types/boxing-and-unboxing Microsoft documentation on C# boxing and unboxing]


[[Category:ProtoFlux:Core]]
[[Category:ProtoFlux:Core]]

Latest revision as of 16:24, 18 April 2025

Unbox
Input
*
Core

The Unbox<T> node converts a boxed object back into its underlying value type.

Inputs

Input (Object)

The object to unbox.

Outputs

* (Generic)

The unboxed value of the object.

See also