Hello, I needed some help on how to declare a property to take in an enumerator in a managed class in Visual C++ 2010. The piece of code in question is as follows in Visual C++2003.
I know that for something like the following code in C++ 2003Code:__property virtual bool get_ByteDirection(Ports port, PortBytes byte);
the corresponding C++ 2010 syntax would be:Code:__property int get_PortDirection(int port);
But when it comes to passing in a user-defined enumerator, I'm unsure of what the 2010 syntax would be. It would be great if i can get some help on this.Code:property int get_PortDirection[int];