Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Surface Variant values, at least on Node.cs #61

Open
migueldeicaza opened this issue Oct 16, 2015 · 1 comment
Open

Surface Variant values, at least on Node.cs #61

migueldeicaza opened this issue Oct 16, 2015 · 1 comment

Comments

@migueldeicaza
Copy link
Contributor

We should at least support a way of getting the value for a Variant.

Those are really boxed types with a limited set of values, perhaps we should surface this as objects?

We could then encode System.Int32 values as VAR_INT for example, and any objects in .NET that do not have an equivalent could be GCHandle wrappers to the boxed value.

@EgorBo
Copy link
Member

EgorBo commented Oct 16, 2015

CxxBinder already supports Variant (as an arument only, it needs a fix for "Variant" as a return type).
It generates overloads for all possible types that can be used as Variant
https://github.com/xamarin/urho/blob/master/SharpieBinder/CxxBinder.cs#L1325

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants