From: Tony Johansson on 24 Jun 2010 10:35 Hello! Do any class inherit from Enum ? Can you mention anyone. //Tony
From: Willem van Rumpt on 24 Jun 2010 10:51 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 24 Jun 2010 11:12 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 24 Jun 2010 19:46 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
|
Pages: 1 Prev: dynamic search and sort using linq Next: Events and Dispose |