Click here to Skip to main content
15,916,042 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
Questionmonodevelop Pin
asugix4-Apr-09 3:00
asugix4-Apr-09 3:00 
QuestionSystem.Enum - not a class? Pin
Adrian Cole3-Apr-09 19:09
Adrian Cole3-Apr-09 19:09 
AnswerRe: System.Enum - not a class? Pin
Eddy Vluggen3-Apr-09 23:56
professionalEddy Vluggen3-Apr-09 23:56 
GeneralRe: System.Enum - not a class? Pin
Adrian Cole4-Apr-09 6:29
Adrian Cole4-Apr-09 6:29 
GeneralRe: System.Enum - not a class? Pin
Eddy Vluggen4-Apr-09 23:01
professionalEddy Vluggen4-Apr-09 23:01 
GeneralRe: System.Enum - not a class? Pin
dojohansen14-Apr-09 7:13
dojohansen14-Apr-09 7:13 
AnswerRe: System.Enum - not a class? Pin
PIEBALDconsult5-Apr-09 6:22
mvePIEBALDconsult5-Apr-09 6:22 
QuestionRe: System.Enum - not a class? Pin
Adrian Cole5-Apr-09 18:50
Adrian Cole5-Apr-09 18:50 
OK. Given that System.Enum is declared as public abstract class Enum : ValueType, IComparable, IFormattable, IConvertible, in your opinion, what should the following return?

Type.GetType("System.Enum").IsClass
Type.GetType("System.Enum").IsInterface
Type.GetType("System.Enum").IsValueType

My guess would be true, false, false when the reality is false, false, false.

As far as I can tell, Enum is the only type declared as a class in the System namespace hierarchy where Type.GetType("type name").IsClass returns false. I'm trying to find out why, and nothing I've read so far has answered that question.

BTW, not everything derives from Object. Interfaces do not derive from anything.
AnswerRe: System.Enum - not a class? Pin
PIEBALDconsult6-Apr-09 4:27
mvePIEBALDconsult6-Apr-09 4:27 
GeneralRe: System.Enum - not a class? Pin
Adrian Cole6-Apr-09 8:52
Adrian Cole6-Apr-09 8:52 
QuestionProblems when reimplementing c# class to f# Pin
Ravadre3-Apr-09 11:54
Ravadre3-Apr-09 11:54 
AnswerRe: Problems when reimplementing c# class to f# Pin
Kevin McFarlane3-Apr-09 12:42
Kevin McFarlane3-Apr-09 12:42 
QuestionGeneral question about allocate memory in .NET Pin
Yanshof3-Apr-09 7:05
Yanshof3-Apr-09 7:05 
AnswerRe: General question about allocate memory in .NET Pin
Luc Pattyn3-Apr-09 7:24
sitebuilderLuc Pattyn3-Apr-09 7:24 
GeneralRe: General question about allocate memory in .NET Pin
led mike3-Apr-09 8:31
led mike3-Apr-09 8:31 
GeneralRe: General question about allocate memory in .NET Pin
Luc Pattyn3-Apr-09 8:45
sitebuilderLuc Pattyn3-Apr-09 8:45 
GeneralRe: General question about allocate memory in .NET Pin
harold aptroot3-Apr-09 13:10
harold aptroot3-Apr-09 13:10 
Generalcount save Pin
AARONDAS3-Apr-09 6:42
AARONDAS3-Apr-09 6:42 
GeneralRe: count save Pin
led mike3-Apr-09 8:33
led mike3-Apr-09 8:33 
GeneralRe: count save Pin
Luc Pattyn3-Apr-09 8:49
sitebuilderLuc Pattyn3-Apr-09 8:49 
GeneralRe: count save Pin
dojohansen9-Apr-09 5:05
dojohansen9-Apr-09 5:05 
GeneralRe: count save Pin
kumarnitesh6-Apr-09 1:19
kumarnitesh6-Apr-09 1:19 
QuestionResolving the full type name Pin
Vipul Mehta3-Apr-09 2:46
Vipul Mehta3-Apr-09 2:46 
AnswerRe: Resolving the full type name Pin
Pete O'Hanlon3-Apr-09 3:07
mvePete O'Hanlon3-Apr-09 3:07 
AnswerRe: Resolving the full type name Pin
Vipul Mehta3-Apr-09 3:37
Vipul Mehta3-Apr-09 3:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.