Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
GeneralRe: c++ vs C# Pin
Christian Graus16-Oct-03 10:04
protectorChristian Graus16-Oct-03 10:04 
GeneralRe: c++ vs C# Pin
Eric Gunnerson (msft)16-Oct-03 10:33
Eric Gunnerson (msft)16-Oct-03 10:33 
Generalenums suck! Pin
Alvaro Mendez15-Oct-03 9:17
Alvaro Mendez15-Oct-03 9:17 
GeneralRe: enums suck! Pin
Richard Lowe15-Oct-03 10:36
Richard Lowe15-Oct-03 10:36 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 11:10
Alvaro Mendez15-Oct-03 11:10 
GeneralRe: enums suck! Pin
Heath Stewart15-Oct-03 11:52
protectorHeath Stewart15-Oct-03 11:52 
GeneralRe: enums suck! Pin
Alvaro Mendez15-Oct-03 13:04
Alvaro Mendez15-Oct-03 13:04 
GeneralRe: enums suck! Pin
bjoernen16-Oct-03 3:36
bjoernen16-Oct-03 3:36 
C# enums are not primarily used for giving integer constants names. For that purpose you use integer constants. Enums are a type of their own. Thats why they have to be casted if you want to use them as integers. That, together with not treating 0/1 as boolean values, are just ways to improve the language and enforce type safety, that makes us programmers write safer code.

Your examples of bitwise operations dont work because you try to implicitly convert to Int32.

GeneralRe: enums suck! Pin
Richard Lowe16-Oct-03 3:37
Richard Lowe16-Oct-03 3:37 
GeneralToolbar Pin
Gary Kirkham15-Oct-03 8:50
Gary Kirkham15-Oct-03 8:50 
GeneralRe: Toolbar Pin
Heath Stewart15-Oct-03 11:54
protectorHeath Stewart15-Oct-03 11:54 
GeneralCustom Controls and Enum value Types Pin
Douglas Troy15-Oct-03 5:45
Douglas Troy15-Oct-03 5:45 
GeneralPassing a Form reference to a new Form Pin
mikemilano15-Oct-03 4:50
mikemilano15-Oct-03 4:50 
GeneralRe: Passing a Form reference to a new Form Pin
Mike Dimmick15-Oct-03 4:59
Mike Dimmick15-Oct-03 4:59 
GeneralBindingContext Pin
Anonymous15-Oct-03 4:45
Anonymous15-Oct-03 4:45 
GeneralWindows Form TabPage Pin
Jubal15-Oct-03 4:19
Jubal15-Oct-03 4:19 
GeneralRe: Windows Form TabPage Pin
Wjousts15-Oct-03 5:49
Wjousts15-Oct-03 5:49 
GeneralUsing C# in MFC Project Pin
Anonymous14-Oct-03 23:53
Anonymous14-Oct-03 23:53 
GeneralVersioning Solution Pin
Member 37818914-Oct-03 20:55
Member 37818914-Oct-03 20:55 
GeneralRe: Versioning Solution Pin
Douglas Troy15-Oct-03 6:26
Douglas Troy15-Oct-03 6:26 
GeneralRe: Versioning Solution Pin
Heath Stewart15-Oct-03 11:59
protectorHeath Stewart15-Oct-03 11:59 
GeneralRe: Versioning Solution Pin
Douglas Troy16-Oct-03 4:44
Douglas Troy16-Oct-03 4:44 
GeneralRe: Versioning Solution Pin
15-Oct-03 19:38
suss15-Oct-03 19:38 
GeneralRe: Versioning Solution Pin
Member 37818915-Oct-03 23:20
Member 37818915-Oct-03 23:20 
GeneralRe: Versioning Solution Pin
Douglas Troy16-Oct-03 4:58
Douglas Troy16-Oct-03 4:58 

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.