Managed enums
Andrew Eames <[email protected]> Mon, 22 Oct 2007 11:17:37 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi, According to the the MSDN docs http://msdn2.microsoft.com/en- us/library/a6cskb49(VS.80).aspx Quote If a standard C++ enum is defined (without class or struct), compiling with /clr will cause the enumeration to be compiled as a managed enum. The enumeration still has the semantics of an unmanaged enumeration. Note, the compiler injects an attribute, Microsoft::VisualC::NativeEnumAttribute, which the Visual C++ compiler recognizes, to identify a programmer's intent for the enum to be a native enum. Other compilers will simply see the standard enum as a managed enum. /Quote When I do this, the enum is marked as internal so this is not actually very helpful - is there a way to make it public (other than making it a managed enum) - I dont see the NativeEnumAttribute either Thanks Andrew =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com