I raised this question to provide few examples on using C++ methods in C#.
Example based on a small Scenario: I have a structure in C++ and this is the output of a method in C++. I want to use this method in C#.
For this, I have to create a equivalent structure and wrapper method in C#. The structure returned as a pointer from C++. So, we catch that pointer from C# and marshall that pointer to structure.
enum
CustomerType