Reach managed c++ Enum from C#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to use an enum created in Managed c++ in a C# project. I can reach
the enums name, i.e.

namespace MyNS
{
public enum MyEnum
{
EOne,
ETwo
};
}

in C++ makes me able to reach MyEnum, but not MyEnum.EOne. Why?
 
I'm trying to use an enum created in Managed c++ in a C# project. I can
reach
the enums name, i.e.

namespace MyNS
{
public enum MyEnum
{
EOne,
ETwo
};
}

in C++ makes me able to reach MyEnum, but not MyEnum.EOne. Why?

That should be
public __value enum MyEnum
the __value turns into a 'real' managed enum.
 
Back
Top