You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this function in the client application, like so: FetchNewObject(out MyValueType myType);, the member value is zero instead of one. It seems that the change is not correctly reflected in the input argument.
Issue could be solved by using C# class instead of struct, but is there a way to make it work with structures?
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to write a function which would return an object using C#
out
keyword.Here is C++ code:
And this is the generated code:
When I use this function in the client application, like so:
FetchNewObject(out MyValueType myType);
, the member value is zero instead of one. It seems that the change is not correctly reflected in theinput
argument.Issue could be solved by using C# class instead of struct, but is there a way to make it work with structures?
The text was updated successfully, but these errors were encountered: