Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internal enum ?
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Internal enum ?
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01600724
Message ID:
01600724
Views:
56
Hi everybody,

I introduced internal enum in my class. I have a method that returns value of that enum. I want to be able to test that method in a test project which is part of my solution.

I added the following line to my class code at the very top
[assembly: InternalsVisibleTo("TestProject")]
As a result I am able to see the methods of the class, but I am unable to declare a variable of the type my enum.

Other than making that enum public is there another solution?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Next
Reply
Map
View

Click here to load this message in the networking platform