I have a class that currently has several methods that take integer parameters. These integers map to operations that the application can perform. I\'d like to make the clas
I'm sure you've moved on from this, however I was working through a similar issue and found this solution that uses a context of "using" I was not familiar with. They need to put it in their namespace, so its not completely perfect.
namespace mygeneric
{
public class SecurityContext
{
}
}
namespace mytest
{
using SecurityContext = mygeneric.SecurityContext;
using mygeneric;
enum MyContexts
{
User,
Admin
}
class MyTest
{
SecurityContext myDefaultContext;
SecurityContext mySpecialContext;
}
}