There are two separate project which are trying to communicate like this :
I have following native class in C++ CLI
public class Data{
public:
int x;
}
By importing I mean that have added reference to C++ CLI project in my C# project.
On other side I'm importing this C++ CLI project into my C# project and in C# I want to do :
Data k = new Data() //It's ok till here
int b = k.x; //The field x is not visible here !
Is there any way to force C# or C++ CLI to share the field and methods ?
EDIT: Also C# assume the class data
as a struct
!