From: Tony Johansson on
Hello!

Do any class inherit from Enum ?
Can you mention anyone.

//Tony



From: Willem van Rumpt on
Tony Johansson wrote:
> Hello!
>
> Do any class inherit from Enum ?
> Can you mention anyone.
>
> //Tony
>
>
>

All enums inherit from System.Enum, but you can't derive a class from it
yourself.


--
Willem van Rumpt
From: Peter Duniho on
Tony Johansson wrote:
> Hello!
>
> Do any class inherit from Enum ?
> Can you mention anyone.

All "enum" types inherit from System.Enum. All value types are sealed
and thus cannot be further inherited. This includes any "enum" types.

Pete
From: Arne Vajhøj on
On 24-06-2010 10:35, Tony Johansson wrote:
> Hello!
>
> Do any class inherit from Enum ?
> Can you mention anyone.

I get:

inhenum.cs(3,14): error CS0644: 'Foobar' cannot derive from special
class 'System.Enum'

you don't?

Arne