Re: Managed enums
Peter Ritchie <[email protected]> Mon, 22 Oct 2007 14:01:13 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.cx |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
On Mon, 22 Oct 2007 11:17:37 -0400, Andrew Eames <[email protected]> wrote: >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 The problem is that default access is internal. To override that you need to specific either the access on the enum or its parent class. Unmanaged C++ doesn't have that concept and you'd have to used C++/CLI syntax which only applies to managed types. I know of nothing that changes the default access to be something other than internal for a project or a module. I also see nothing in the .NET 1.0, 1.1, or 2.0 assemblies about NativeEnumAttribute. My guess is the documentation is wrong and NativeEnumAttribute is replaced by ScopelessEnumAttribute. You should be able to use a managed enum in native code in the same module, if that's what you need to do. =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com