I have enum :
public enum ConsoleMessageType
{
Error, Info, BackInfo, Success
}
I have enum :
public enum ConsoleMessageType
{
Error, Info, BackInfo, Success
}
No, this isn't possible.
C# is an strongly-typed language and its nature prevents from supporting such things.
Check this article about expando objects, which is a possible solution for your problem: