cesium-unity icon indicating copy to clipboard operation
cesium-unity copied to clipboard

Reinterop: Nullable, non-struct fields are not correctly accessed using std::optional

Open kring opened this issue 3 years ago • 0 comments

From https://github.com/CesiumGS/cesium-unity/pull/211#discussion_r1115973471:

When I do a nullable non-struct field in a class (for example, I added public int? test2 to CesiumGeoreference, it's not generating code with std::optional, it's doing this instead:

public: ::DotNet::System::Nullable1<::std::int32_t> test2() const;
public: void test2(const ::DotNet::System::Nullable1<::std::int32_t>& value) const;

Is that intentional?

kring avatar Feb 24 '23 01:02 kring