Hi. Is there a way I could point an Enum to another Enum? Here are the needs and details:
Currently:
- I have a two public classes com.abcd.MyManager and com.abcd.data.MyObject.
- MyObject class have pretty much everything is private except Types enum member.
- MyManager class uses MyObject class
- Notice MyObject class lives in a separate namespace.
- One of the MyManager methods have following signature:
public void Init(string name, MyObject.Types type)
{
// does Init
}
Refactor requirement:
- Just because of MyObject.Types used in the Init method and also it is living in another namespace. Developers have to include both namespaces in their code. I like to move the MyObject.Types enum to MyManager class. something similar like this:
public void Init(string name, MyManager.Types type)
{
// does Init
}
Any suggestions on how could I do this without breaking current structure? Thanks.