Hi Guys,

I know from .NET 3.5 onwards (or might be 3.0) we can use Exension Methods to add our own methods to any Type in the .NET Framework and this is very handy, but I'm wondering if it is possible to "extend" an Enum as well?

The thing is, I don't mean adding a new method to the enum, I mean adding a new value to the available items in the enum.

E.g if we had an Enum like this:

Code:
Public Enum Something As Integer
    ExampleItemOne = 2
    ExampleItemTwo = 4
End Enum
I would like to extend this to add another item like so:

Code:
Public Enum Something As Integer
    ExampleItemOne = 2
    ExampleItemTwo = 4
    ExampleItemThree = 8
End Enum
Is this possible? I suspect not... and if that is the case, can anyone think of any other way to do something similar? Basically I have an Enum that is going to be identical to an Enum already in the framework but with a couple of extra values, so I'm looking for an alternative to just including all of the values from the existing enum manually in my own enum. Hope that makes sense

Cheers
Chris