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

.NET (Core and Framework)

 
AnswerRe: Need help getting started on modbus project Pin
Luc Pattyn5-Apr-09 11:37
sitebuilderLuc Pattyn5-Apr-09 11:37 
GeneralRe: Need help getting started on modbus project Pin
autocatch5-Apr-09 11:50
autocatch5-Apr-09 11:50 
QuestionWindows Azure Help.... Pin
kostas_del5-Apr-09 7:28
kostas_del5-Apr-09 7:28 
AnswerRe: Windows Azure Help.... Pin
binarymax9-Apr-09 2:37
binarymax9-Apr-09 2:37 
GeneralRe: Windows Azure Help.... Pin
kostas_del9-Apr-09 8:12
kostas_del9-Apr-09 8:12 
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 
You're not missing anything, it's just that the documentation isn't very consistent in the use of definitions.

IsClass is false, as System.Enum inherits from ValueType. You needn't instantiate an enum, like you would do with a 'real' class.

MSDN [^]wrote:
An enumeration is a named constant whose underlying type is any integral type except Char. If no underlying type is explicitly declared, Int32 is used. Programming languages typically provide syntax to declare an enumeration that consists of a set of named constants and their values.

Enum provides methods to compare instances of this class, convert the value of an instance to its string representation, convert the string representation of a number to an instance of this class, and create an instance of a specified enumeration and value.


It's the phrase "provides methods to compare instances of this class" that makes it harder to explain. You don't make (new) instances of an enum, you assign it's value to a valueType. Alas, the thing that you are assigning is an instance of a valuetype.

See, speech is mainly for communication and not for the errorless movement of ideas. That's why lots of casual talk is misinterpreted, as both sender and receiver use different versions of the definition of the data that is transmitted Smile | :)

Ehr..

..the short answer was that an enumeration is not a class Shucks | :-\

I are troll Smile | :)

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 
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 

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.