inheriting from Enum

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
Tony said:
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

about enum 3
Enum TypeConverter 3
Merge Info From Two Enums 1
enum 5
enum type 3
Enum Extentions 7
I have small probalem 4
Enums & Constructors? 4

Back
Top