Handling pointers to structure in C#
问题 I'm working on project which includes DLL written in C++ and a C# code. Lets say that that DLL has a function: MyStruct* GetPointer(); // returns pointer to MyStruct structure MyStruct structure looks like this: struct MyStruct { OtherStruct1 *data1; OtherStruct2 *data2; }; And OtherStruct1 and OtherStruct2 structures look like this: struct OtherStruct1 { public: double x; char y; }; struct OtherStruct2 { public: float a; float b; float c; float d; }; My question is - what's the best way to